Skip to content

Commit

Permalink
chore(debug): allow all logging messages through for debugging purposes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ProbablePrime committed Mar 28, 2024
1 parent fadd5e3 commit 62f426b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions LiteNetLib/NetDebug.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Diagnostics;

namespace LiteNetLib
{
public class InvalidPacketException : ArgumentException
Expand Down Expand Up @@ -60,25 +58,21 @@ private static void WriteLogic(NetLogLevel logLevel, string str, params object[]
}
}

[Conditional("DEBUG_MESSAGES")]
internal static void Write(string str)
{
WriteLogic(NetLogLevel.Trace, str);
}

[Conditional("DEBUG_MESSAGES")]
internal static void Write(NetLogLevel level, string str)
{
WriteLogic(level, str);
}

[Conditional("DEBUG_MESSAGES"), Conditional("DEBUG")]
internal static void WriteForce(string str)
{
WriteLogic(NetLogLevel.Trace, str);
}

[Conditional("DEBUG_MESSAGES"), Conditional("DEBUG")]
internal static void WriteForce(NetLogLevel level, string str)
{
WriteLogic(level, str);
Expand Down

0 comments on commit 62f426b

Please sign in to comment.