Features/discord errors (#22)
* catching another http error code. * more discord logging * Setting min logging to debug for now. * program logging is set to info but job logging is debug.
This commit is contained in:
parent
33bf88d866
commit
c0251e2485
@ -80,15 +80,16 @@ static ILogger GetLogger(IConfiguration configuration)
|
||||
{
|
||||
var otel = configuration.GetValue<string>(ConfigConnectionStringConst.OpenTelemetry) ?? "";
|
||||
|
||||
if (otel == "")
|
||||
if (otel == "")s
|
||||
return Log.Logger = new LoggerConfiguration()
|
||||
.WriteTo.Console()
|
||||
.MinimumLevel.Debug()
|
||||
.MinimumLevel.Information()
|
||||
.CreateLogger();
|
||||
|
||||
return Log.Logger = new LoggerConfiguration()
|
||||
.WriteTo.Console()
|
||||
.MinimumLevel.Debug()
|
||||
|
||||
.MinimumLevel.Information()
|
||||
.WriteTo.OpenTelemetry(
|
||||
otel,
|
||||
resourceAttributes: new Dictionary<string, object>
|
||||
|
@ -10,6 +10,7 @@ public static class JobLogger
|
||||
return Log.Logger = new LoggerConfiguration().WriteTo.Console().CreateLogger();
|
||||
return Log.Logger = new LoggerConfiguration()
|
||||
.WriteTo.Console()
|
||||
.MinimumLevel.Debug()
|
||||
.WriteTo.OpenTelemetry(
|
||||
connectionString,
|
||||
resourceAttributes: new Dictionary<string, object>
|
||||
|
Loading…
Reference in New Issue
Block a user