mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-11 04:57:22 +01:00
??? add logging
This commit is contained in:
parent
fe2002ef1e
commit
149b496ea7
1 changed files with 3 additions and 2 deletions
|
|
@ -170,11 +170,10 @@ public class Startup
|
|||
}));
|
||||
}
|
||||
|
||||
private static void ConfigureRedis(IServiceCollection services, IConfigurationSection mareConfig)
|
||||
private void ConfigureRedis(IServiceCollection services, IConfigurationSection mareConfig)
|
||||
{
|
||||
// configure redis for SignalR
|
||||
var redisConnection = mareConfig.GetValue(nameof(ServerConfiguration.RedisConnectionString), string.Empty);
|
||||
|
||||
var options = ConfigurationOptions.Parse(redisConnection);
|
||||
|
||||
var endpoint = options.EndPoints[0];
|
||||
|
|
@ -206,6 +205,8 @@ public class Startup
|
|||
SyncTimeout = options.SyncTimeout,
|
||||
};
|
||||
|
||||
_logger.LogInformation("Setting up Redis to connect to {host}:{port}", address, port);
|
||||
|
||||
services.AddStackExchangeRedisExtensions<SystemTextJsonSerializer>(redisConfiguration);
|
||||
}
|
||||
private void ConfigureConfigServices(IServiceCollection services)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue