diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-02-15 21:57:53 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-15 21:57:53 -0600 |
| commit | 0e9db9ca4f1a7b0f9025fa9ab277581a85afe0cb (patch) | |
| tree | 9696ee0e491645958f7b48c055dbaaa879b271e9 /src/slskd/Program.cs | |
| parent | af1bdbcdafe5d63bfef8fb5f5e85dbc3f2352118 (diff) | |
| parent | 236241ba35163a18c78bb6af60545a6c9a42a28e (diff) | |
| download | slskd-0e9db9ca4f1a7b0f9025fa9ab277581a85afe0cb.tar.gz | |
Merge pull request #42 from slskd/hosted-service
Use IHostedService for SoulseekClient
Diffstat (limited to 'src/slskd/Program.cs')
| -rw-r--r-- | src/slskd/Program.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 9b17a1dd..00d6d5b4 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -28,6 +28,7 @@ namespace slskd using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; + using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.FileProviders.Physical; using Prometheus.DotNetRuntime; @@ -63,7 +64,7 @@ namespace slskd /// <summary> /// The default XML documentation filename. /// </summary> - public static readonly string DefaultXmlDocumentaitonFile = Path.Combine(AppContext.BaseDirectory, "etc", $"{AppName}.xml"); + public static readonly string DefaultXmlDocumentaitonFile = Path.Combine(AppContext.BaseDirectory, "etc", $"{AppName}.xml"); /// <summary> /// The global prefix for environment variables. @@ -209,7 +210,8 @@ namespace slskd Log.Logger = new LoggerConfiguration() .MinimumLevel.Debug() - .MinimumLevel.Override("Microsoft", LogEventLevel.Information) + .MinimumLevel.Override("Microsoft", LogEventLevel.Warning) + .MinimumLevel.Override("slskd.API.Authentication.PassthroughAuthenticationHandler", LogEventLevel.Information) .Enrich.WithProperty("Version", Version) .Enrich.WithProperty("InstanceName", Options.InstanceName) .Enrich.WithProperty("InvocationId", InvocationId) @@ -234,7 +236,7 @@ namespace slskd Log.Logger = new LoggerConfiguration() .MinimumLevel.Information() .MinimumLevel.Override("Microsoft", LogEventLevel.Warning) - .MinimumLevel.Override("slskd.Security.PassthroughAuthenticationHandler", LogEventLevel.Information) + .MinimumLevel.Override("slskd.API.Authentication.PassthroughAuthenticationHandler", LogEventLevel.Information) .Enrich.WithProperty("Version", Version) .Enrich.WithProperty("InstanceName", Options.InstanceName) .Enrich.WithProperty("InvocationId", InvocationId) |
