Skip to content

Commit 3cc7428

Browse files
committed
Log prefix
1 parent 99f0b55 commit 3cc7428

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Assets/Thirdweb/Core/Scripts/ThirdwebDebug.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,24 @@ public static class ThirdwebDebug
77
{
88
public static bool IsEnabled => ThirdwebManager.Instance != null && ThirdwebManager.Instance.showDebugLogs;
99

10+
private const string PREFIX = "[Thirdweb] ";
11+
1012
public static void Log(object message)
1113
{
1214
if (IsEnabled)
13-
Debug.Log(message);
15+
Debug.Log(PREFIX + message);
1416
}
1517

1618
public static void LogWarning(object message)
1719
{
1820
if (IsEnabled)
19-
Debug.LogWarning(message);
21+
Debug.LogWarning(PREFIX + message);
2022
}
2123

2224
public static void LogError(object message)
2325
{
2426
if (IsEnabled)
25-
Debug.LogError(message);
27+
Debug.LogError(PREFIX + message);
2628
}
2729

2830
public static void LogException(Exception exception)

0 commit comments

Comments
 (0)