From 8c54062c442d8cb9d404c39d42a5a9ce9340455a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 3 Jun 2019 17:04:45 -0400 Subject: [PATCH] remove lock logging --- src/Core/Services/LockService.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Core/Services/LockService.cs b/src/Core/Services/LockService.cs index c688714fb..007af23f0 100644 --- a/src/Core/Services/LockService.cs +++ b/src/Core/Services/LockService.cs @@ -44,29 +44,22 @@ namespace Bit.Core.Services public async Task IsLockedAsync() { - var logService = ServiceContainer.Resolve("logService"); - logService.Info("IsLockedAsync 1"); var hasKey = await _cryptoService.HasKeyAsync(); if(hasKey) { - logService.Info("IsLockedAsync 2"); if(PinLocked) { - logService.Info("IsLockedAsync 3"); return true; } else { - logService.Info("IsLockedAsync 4"); var fingerprintSet = await IsFingerprintLockSetAsync(); if(fingerprintSet && FingerprintLocked) { - logService.Info("IsLockedAsync 5"); return true; } } } - logService.Info("IsLockedAsync 6"); return !hasKey; } @@ -109,8 +102,6 @@ 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) { @@ -118,23 +109,19 @@ namespace Bit.Core.Services } if(allowSoftLock) { - logService.Info("LockAsync 2"); var pinSet = await IsPinLockSetAsync(); if(pinSet.Item1) { - logService.Info("LockAsync PinLocked = true"); PinLocked = true; } FingerprintLocked = await IsFingerprintLockSetAsync(); 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),