From 0145a4d87ebe474aba82e2ad136eb9f5d652cc12 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 7 Jun 2026 13:50:21 -0500 Subject: use the default message formatter for Loki (previous format prevented capture of properties) --- src/slskd/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 39c0d2ac..9a2914ea 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -1008,6 +1008,7 @@ namespace slskd services.AddSwaggerGen(options => { options.DescribeAllParametersInCamelCase(); + options.CustomSchemaIds(type => type.FullName); options.SwaggerDoc("v0", new OpenApiInfo { Version = "v0", @@ -1217,6 +1218,7 @@ namespace slskd .MinimumLevel.Override("slskd.Authentication.PassthroughAuthenticationHandler", LogEventLevel.Warning) .MinimumLevel.Override("slskd.Authentication.ApiKeyAuthenticationHandler", LogEventLevel.Warning) .MinimumLevel.Override("Microsoft.EntityFrameworkCore.Database.Command", LogEventLevel.Warning) // bump this down to Information to show SQL + .Enrich.WithProperty("App", AppName) .Enrich.WithProperty("InstanceName", OptionsAtStartup.InstanceName) .Enrich.WithProperty("InvocationId", InvocationId) .Enrich.WithProperty("ProcessId", ProcessId) @@ -1239,9 +1241,7 @@ namespace slskd { if (!string.IsNullOrEmpty(OptionsAtStartup.Logger.Loki)) { - config.GrafanaLoki( - OptionsAtStartup.Logger.Loki, - textFormatter: new MessageTemplateTextFormatter("[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}")); + config.GrafanaLoki(OptionsAtStartup.Logger.Loki); } }) .WriteTo.Sink(new DelegatingSink(logEvent => -- cgit v1.2.3