Skip to content

Commit f1b881f

Browse files
option for print of stacktrace
1 parent 1aae63e commit f1b881f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Runtime/Scripts/Logs.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public class Logs : MonoBehaviour
1616
public int maxLogCount = 128;
1717

1818
[SerializeField] private bool isLogUnityMessages;
19+
[SerializeField] private bool isLogUnityStackTraces;
1920

2021
public Action<Info> onLog;
2122
public Action<Info> onDequeue;
@@ -42,7 +43,7 @@ private void ApplicationOnlogMessageReceived(string message, string stacktrace,
4243
case LogType.Exception:
4344
case LogType.Error:
4445
LogError(message);
45-
if(stacktrace.Length > 0) LogError(stacktrace);
46+
if(isLogUnityStackTraces && stacktrace.Length > 0) LogError(stacktrace);
4647
break;
4748
case LogType.Warning:
4849
LogWarn(message);

0 commit comments

Comments
 (0)