Skip to content

Commit 3963caf

Browse files
committed
Merge pull request googleanalytics#81 from belm0/log_assertions
Log assertions as exceptions.
2 parents a4f4854 + af90a5f commit 3963caf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Plugins/GoogleAnalyticsV3/GoogleAnalyticsV3.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ void Update() {
137137
}
138138

139139
private void HandleException(string condition, string stackTrace, LogType type) {
140-
if (type == LogType.Exception) {
140+
if (type == LogType.Exception || type == LogType.Assert) {
141141
uncaughtExceptionStackTrace = condition + "\n" + stackTrace
142142
+ UnityEngine.StackTraceUtility.ExtractStackTrace();
143143
}

0 commit comments

Comments
 (0)