fix: make appdebug case-insensitive

when commands like `appdebug verbose` are used rather than `appdebug 2`, the command would fail because Verbose != verbose. The enum conversion is now case-insensitive.
This commit is contained in:
Andrew Welker
2025-08-11 17:50:50 -05:00
parent ab4e85d081
commit f2d0dca7b8

View File

@@ -376,7 +376,7 @@ namespace PepperDash.Core
return;
}
if (Enum.TryParse<LogEventLevel>(levelString, out var levelEnum))
if (Enum.TryParse<LogEventLevel>(levelString, true, out var levelEnum))
{
SetDebugLevel(levelEnum);
return;