1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-07 05:58:13 -05:00

Only set channel prefix. Use machine name on counter (#687)

This commit is contained in:
Kyle Spearrin 2020-04-03 08:39:59 -04:00 committed by GitHub
parent d6ed8291e6
commit b106fd22fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,5 @@
using System.Threading.Tasks; using System;
using System.Threading.Tasks;
using Bit.Core; using Bit.Core;
using Bit.Core.Jobs; using Bit.Core.Jobs;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
@ -21,7 +22,7 @@ namespace Bit.Notifications.Jobs
protected override Task ExecuteJobAsync(IJobExecutionContext context) protected override Task ExecuteJobAsync(IJobExecutionContext context)
{ {
_logger.LogInformation(Constants.BypassFiltersEventId, _logger.LogInformation(Constants.BypassFiltersEventId,
"Connection count: {0}", _connectionCounter.GetCount()); "Connection count for server {0}: {1}", Environment.MachineName, _connectionCounter.GetCount());
return Task.FromResult(0); return Task.FromResult(0);
} }
} }

View File

@ -62,7 +62,6 @@ namespace Bit.Notifications
signalRServerBuilder.AddStackExchangeRedis(globalSettings.Notifications.RedisConnectionString, signalRServerBuilder.AddStackExchangeRedis(globalSettings.Notifications.RedisConnectionString,
options => options =>
{ {
options.Configuration.ClientName = "Notifications";
options.Configuration.ChannelPrefix = "Notifications"; options.Configuration.ChannelPrefix = "Notifications";
}); });
} }