fix: stop crash on start with empty sentry dsn, make max avatar length a constant

This commit is contained in:
sam 2024-11-23 20:43:43 +01:00
parent d87856bf2c
commit 142ff36d3a
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
2 changed files with 6 additions and 2 deletions

View file

@ -18,7 +18,7 @@ builder.AddSerilog();
builder
.WebHost.UseSentry(opts =>
{
opts.Dsn = config.Logging.SentryUrl;
opts.Dsn = config.Logging.SentryUrl ?? "";
opts.TracesSampleRate = config.Logging.SentryTracesSampleRate;
opts.MaxRequestBodySize = RequestSize.Small;
})