Skip to content

Commit 3e59886

Browse files
committed
handle setting not existing
1 parent a843701 commit 3e59886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceControl.Infrastructure/LoggingSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public LoggingSettings(SettingsRootNamespace rootNamespace, LogLevel defaultLeve
1414
LogLevel = InitializeLogLevel(rootNamespace, defaultLevel);
1515
LogPath = SettingsReader.Read(rootNamespace, logPathKey, Environment.ExpandEnvironmentVariables(logPath ?? DefaultLogLocation()));
1616

17-
var loggingProviders = SettingsReader.Read<string>(rootNamespace, loggingProvidersKey).Split(",");
17+
var loggingProviders = (SettingsReader.Read<string>(rootNamespace, loggingProvidersKey) ?? "").Split(",");
1818
var activeLoggers = Loggers.None;
1919
if (loggingProviders.Contains("NLog"))
2020
{

0 commit comments

Comments
 (0)