1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

updates to logging

This commit is contained in:
Kyle Spearrin
2019-03-20 08:26:11 -04:00
parent 2f3b38a941
commit 9dedf359e5
3 changed files with 8 additions and 11 deletions

View File

@ -32,15 +32,12 @@ namespace Bit.Core.Services
globalSettings.Installation?.Id != null &&
CoreHelpers.SettingHasValue(globalSettings.Installation?.Key))
{
logger.LogInformation(Constants.BypassFiltersEventId, "Use RelayPushNotificationService");
_services.Add(new RelayPushNotificationService(_deviceRepository, globalSettings,
httpContextAccessor, relayLogger));
}
if(CoreHelpers.SettingHasValue(globalSettings.InternalIdentityKey) &&
CoreHelpers.SettingHasValue(globalSettings.BaseServiceUri.InternalNotifications))
{
logger.LogInformation(Constants.BypassFiltersEventId,
"Use NotificationsApiPushNotificationService");
_services.Add(new NotificationsApiPushNotificationService(
globalSettings, httpContextAccessor, hubLogger));
}