diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-07-19 09:50:06 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-07-19 09:50:06 -0500 |
| commit | 7367955adae20a15b6b664a232700030cb4e713b (patch) | |
| tree | 8d3c9d8d685de1f112d0857ad08a21c174a59b7b /src | |
| parent | 46485c8be4cd214018bbc09cfad135423687f13b (diff) | |
| download | slskd-7367955adae20a15b6b664a232700030cb4e713b.tar.gz | |
tweak reconfiguration logging
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Startup.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slskd/Startup.cs b/src/slskd/Startup.cs index 33e82736..65604197 100644 --- a/src/slskd/Startup.cs +++ b/src/slskd/Startup.cs @@ -92,6 +92,7 @@ namespace slskd // add IOptionsMonitor and IOptionsSnapshot to DI. use when the current Options are to be used. services.AddOptions<Options>() .Bind(Configuration.GetSection(Program.AppName), o => { o.BindNonPublicProperties = true; }) + .PostConfigure(_ => logger.Debug("Options (re)configured.")) .Validate(options => { if (!options.TryValidate(out var result)) @@ -101,7 +102,7 @@ namespace slskd return false; } - logger.Information("Options (re)configured successfully."); + logger.Debug("Options validated successfully."); return true; }); |
