aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-02-15 18:24:47 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-02-15 18:24:47 -0600
commit0163de0e81f877b2d702e2c1e6d21f90e28e0875 (patch)
tree92d5c9d80fccace30408a4f54e68e5d58d7f3bcb /src
parent25876ee8261552d000fc3d0af3f89b70e8b05b42 (diff)
downloadslskd-0163de0e81f877b2d702e2c1e6d21f90e28e0875.tar.gz
suppress passthrough auth and microsoft logs
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Program.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 9b17a1dd..2d894080 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;
@@ -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)