From 07bc4250460d8ce106e6e8cab03455d85feb32a5 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 3 Jun 2019 16:43:57 -0400 Subject: [PATCH] more logging --- src/Core/Services/LockService.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Core/Services/LockService.cs b/src/Core/Services/LockService.cs index a65339542..dd2878643 100644 --- a/src/Core/Services/LockService.cs +++ b/src/Core/Services/LockService.cs @@ -109,6 +109,8 @@ namespace Bit.Core.Services public async Task LockAsync(bool allowSoftLock = false, bool userInitiated = false) { + var logService = ServiceContainer.Resolve("logService"); + logService.Info("LockAsync 1"); var authed = await _userService.IsAuthenticatedAsync(); if(!authed) { @@ -116,24 +118,27 @@ namespace Bit.Core.Services } if(allowSoftLock) { + logService.Info("LockAsync 2"); var pinSet = await IsPinLockSetAsync(); if(pinSet.Item1) { - var logService = ServiceContainer.Resolve("logService"); logService.Info("LockAsync PinLocked = true"); PinLocked = true; } if(await IsFingerprintLockSetAsync()) { + logService.Info("LockAsync 3"); FingerprintLocked = true; } if(FingerprintLocked || PinLocked) { + logService.Info("LockAsync 4"); _messagingService.Send("locked", userInitiated); // TODO: locked callback? return; } } + logService.Info("LockAsync 5"); await Task.WhenAll( _cryptoService.ClearKeyAsync(), _cryptoService.ClearOrgKeysAsync(true),