1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 23:31:13 -05:00

add command to set log level and develop mode dynamically

This commit is contained in:
RaidMax
2023-05-26 21:14:49 -05:00
parent 4002745ad7
commit e463e9c5fe
3 changed files with 107 additions and 7 deletions

View File

@ -1145,7 +1145,7 @@ namespace SharedLibraryCore
/// </summary>
/// <returns></returns>
public static bool IsDevelopment =>
Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Development";
Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Development" || AppContext.TryGetSwitch("IsDevelop", out _);
/// <summary>
/// replaces any directory separator chars with the platform specific character