Skip to content

Commit 3b0918c

Browse files
Erik Bylundkirre-bylund
authored andcommitted
scout: Add new loglevel Debug that is hidden logged
1 parent 9001f2a commit 3b0918c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Runtime/Client/LootLockerServerRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ public static void CallAPI(string endPoint, LootLockerHTTPMethod httpMethod, str
617617
}
618618

619619
#if UNITY_EDITOR
620-
LootLockerLogger.GetForLogLevel(LootLockerLogger.LogLevel.Verbose)("Caller Type: " + callerRole);
620+
LootLockerLogger.GetForLogLevel(LootLockerLogger.LogLevel.Debug)("Caller Type: " + callerRole);
621621
#endif
622622

623623
Dictionary<string, string> headers = new Dictionary<string, string>();

Runtime/Game/LootLockerLogger.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ public class LootLockerLogger
99
{
1010
public enum LogLevel
1111
{
12-
Verbose
12+
Debug
13+
, Verbose
1314
, Info
1415
, Warning
1516
, Error
@@ -81,7 +82,7 @@ private static bool ShouldLog(LogLevel logLevel)
8182
if (LootLockerConfig.current == null ||
8283
(new List<LootLockerConfig.DebugLevel>
8384
{
84-
LootLockerConfig.DebugLevel.All,
85+
LootLockerConfig.DebugLevel.All,
8586
LootLockerConfig.DebugLevel.AllAsNormal
8687
})
8788
.Contains(LootLockerConfig.current.currentDebugLevel))
@@ -91,6 +92,10 @@ private static bool ShouldLog(LogLevel logLevel)
9192

9293
break;
9394
}
95+
case LogLevel.Debug:
96+
{
97+
return false;
98+
}
9499
case LogLevel.Info:
95100
default:
96101
{

0 commit comments

Comments
 (0)