From a6b172c4450f765ef17e04ab6b87fb8791178257 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 8 Feb 2018 16:33:52 -0500 Subject: [PATCH] log and throw accessibility exceptions --- src/Android/AutofillService.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/Android/AutofillService.cs b/src/Android/AutofillService.cs index 8205ce811..b66014733 100644 --- a/src/Android/AutofillService.cs +++ b/src/Android/AutofillService.cs @@ -230,7 +230,21 @@ namespace Bit.Android e.Dispose(); } // Suppress exceptions so that service doesn't crash - catch { } + catch(Exception ex) + { + LogError(ex.Message); + throw ex; + } + } + + private void LogInfo(string msg) + { + global::Android.Util.Log.Info("bw_access", msg); + } + + private void LogError(string msg) + { + global::Android.Util.Log.Error("bw_access", msg); } public override void OnInterrupt()