diff --git a/src/Core/Services/Implementations/BaseIdentityClientService.cs b/src/Core/Services/Implementations/BaseIdentityClientService.cs index 5efce253ea..69d11ea749 100644 --- a/src/Core/Services/Implementations/BaseIdentityClientService.cs +++ b/src/Core/Services/Implementations/BaseIdentityClientService.cs @@ -54,12 +54,15 @@ namespace Bit.Core.Services protected async Task SendAsync(HttpMethod method, string path, object requestModel = null) { + _logger.LogInformation(Constants.BypassFiltersEventId, "SendAsync1"); var tokenStateResponse = await HandleTokenStateAsync(); if(!tokenStateResponse) { + _logger.LogInformation(Constants.BypassFiltersEventId, "SendAsync2"); return; } + _logger.LogInformation(Constants.BypassFiltersEventId, "SendAsync3"); var message = new TokenHttpRequestMessage(requestModel, AccessToken) { Method = method, diff --git a/src/Core/Services/Implementations/RelayPushNotificationService.cs b/src/Core/Services/Implementations/RelayPushNotificationService.cs index 17cf8844ea..8b37f1862d 100644 --- a/src/Core/Services/Implementations/RelayPushNotificationService.cs +++ b/src/Core/Services/Implementations/RelayPushNotificationService.cs @@ -73,6 +73,7 @@ namespace Bit.Core.Services RevisionDate = cipher.RevisionDate, }; + _logger.LogInformation(Constants.BypassFiltersEventId, "Relay PushCipherAsync"); await SendPayloadToUserAsync(cipher.UserId.Value, type, message, true); } } @@ -142,14 +143,17 @@ namespace Bit.Core.Services private async Task SendPayloadToUserAsync(Guid userId, PushType type, object payload, bool excludeCurrentContext) { + _logger.LogInformation(Constants.BypassFiltersEventId, "Relay SendPayloadToUserAsync1"); var request = new PushSendRequestModel { UserId = userId.ToString(), Type = type, Payload = payload }; - + + _logger.LogInformation(Constants.BypassFiltersEventId, "Relay SendPayloadToUserAsync2"); await AddCurrentContextAsync(request, excludeCurrentContext); + _logger.LogInformation(Constants.BypassFiltersEventId, "Relay SendPayloadToUserAsync3"); await SendAsync(HttpMethod.Post, "push/send", request); }