Skip to content

Commit

Permalink
fix(src/knifehub.web/config/configoptions.cs): minimumLevel?.ToLower(…
Browse files Browse the repository at this point in the history
…) ?? ""
  • Loading branch information
yiyungent committed Apr 6, 2024
1 parent c4cc49e commit fa6cf78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KnifeHub.Web/Config/ConfigOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public LogEventLevel MinimumLevelEnum
get
{
LogEventLevel rtn = LogEventLevel.Warning;
switch (MinimumLevel.ToLower())
switch (MinimumLevel?.ToLower() ?? "")
{
case "debug":
rtn = LogEventLevel.Debug;
Expand Down

0 comments on commit fa6cf78

Please sign in to comment.