Skip to content

Commit 9d22fa3

Browse files
committed
Disable info logging
1 parent 69422e4 commit 9d22fa3

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

0 Bytes
Binary file not shown.

src/Log.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace BetterLoadSaveGame
88
{
99
public static class Log
1010
{
11-
private static bool _enableLogging = true;
11+
private static bool _enableLogging = false;
1212

1313
private static string GetLogMessage(object messageOrFormat, object[] args)
1414
{
@@ -30,18 +30,12 @@ public static void Info(object messageOrFormat, params object[] args)
3030

3131
public static void Error(object messageOrFormat, params object[] args)
3232
{
33-
if (_enableLogging)
34-
{
35-
Debug.LogError(GetLogMessage(messageOrFormat, args));
36-
}
33+
Debug.LogError(GetLogMessage(messageOrFormat, args));
3734
}
3835

3936
public static void Warn(object messageOrFormat, params object[] args)
4037
{
41-
if (_enableLogging)
42-
{
43-
Debug.LogWarning(GetLogMessage(messageOrFormat, args));
44-
}
38+
Debug.LogWarning(GetLogMessage(messageOrFormat, args));
4539
}
4640
}
4741
}

0 commit comments

Comments
 (0)