[backend/logging] Fix typo
This commit is contained in:
parent
8732f30563
commit
e2048857fb
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ public static class ConsoleLoggerExtensions
|
|||
{
|
||||
public static ILoggingBuilder AddCustomConsoleFormatter(this ILoggingBuilder builder)
|
||||
{
|
||||
if (Environment.GetEnvironmentVariable("INVOCATION_ID") is null)
|
||||
if (Environment.GetEnvironmentVariable("INVOCATION_ID") is not null)
|
||||
{
|
||||
builder.AddConsole(options => options.FormatterName = "systemd-custom")
|
||||
.AddConsoleFormatter<CustomSystemdConsoleFormatter, ConsoleFormatterOptions>();
|
||||
|
|
Loading…
Add table
Reference in a new issue