mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Disable KCP console logging when debugLog flag is off (#2488)
* Disable KCP console logging when debugLog flag is off * Update KcpTransport.cs * Update KcpTransport.cs Co-authored-by: Tiago Martines <tiago.martines@wildlifestudios.com> Co-authored-by: vis2k <info@noobtuts.com>
This commit is contained in:
parent
f08aa57f55
commit
6f8a289384
@ -41,7 +41,10 @@ public class KcpTransport : Transport
|
||||
void Awake()
|
||||
{
|
||||
// logging
|
||||
if (debugLog) Log.Info = Debug.Log;
|
||||
if (debugLog)
|
||||
Log.Info = Debug.Log;
|
||||
else
|
||||
Log.Info = _ => {};
|
||||
Log.Warning = Debug.LogWarning;
|
||||
Log.Error = Debug.LogError;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user