log and throw accessibility exceptions

This commit is contained in:
Kyle Spearrin 2018-02-08 16:33:52 -05:00
parent e625450100
commit a6b172c445

View file

@ -230,7 +230,21 @@ namespace Bit.Android
e.Dispose(); e.Dispose();
} }
// Suppress exceptions so that service doesn't crash // 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() public override void OnInterrupt()