Enable world input debug logging by default with env override
This commit is contained in:
@@ -47,10 +47,10 @@ public sealed class WorldHandler : IClientMessageHandler
|
||||
_sessions = sessions;
|
||||
_ser = ser;
|
||||
_scopeFactory = scopeFactory;
|
||||
_debugInput = string.Equals(
|
||||
Environment.GetEnvironmentVariable("WORLD_INPUT_DEBUG"),
|
||||
"true",
|
||||
StringComparison.OrdinalIgnoreCase);
|
||||
var debugInputEnv = Environment.GetEnvironmentVariable("WORLD_INPUT_DEBUG");
|
||||
_debugInput = string.IsNullOrWhiteSpace(debugInputEnv)
|
||||
? true
|
||||
: debugInputEnv == "1" || string.Equals(debugInputEnv, "true", StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
public IReadOnlyCollection<int> SupportedOpCodes => new[]
|
||||
|
||||
Reference in New Issue
Block a user