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;
|
_sessions = sessions;
|
||||||
_ser = ser;
|
_ser = ser;
|
||||||
_scopeFactory = scopeFactory;
|
_scopeFactory = scopeFactory;
|
||||||
_debugInput = string.Equals(
|
var debugInputEnv = Environment.GetEnvironmentVariable("WORLD_INPUT_DEBUG");
|
||||||
Environment.GetEnvironmentVariable("WORLD_INPUT_DEBUG"),
|
_debugInput = string.IsNullOrWhiteSpace(debugInputEnv)
|
||||||
"true",
|
? true
|
||||||
StringComparison.OrdinalIgnoreCase);
|
: debugInputEnv == "1" || string.Equals(debugInputEnv, "true", StringComparison.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IReadOnlyCollection<int> SupportedOpCodes => new[]
|
public IReadOnlyCollection<int> SupportedOpCodes => new[]
|
||||||
|
|||||||
Reference in New Issue
Block a user