Skip to content

Commit ddf47ca

Browse files
committed
2.1.5: Legacy support
1 parent 6d0aca5 commit ddf47ca

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Runtime/Model/BacktraceStackTrace.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private void Initialize()
7575
SetStacktraceInformation(frames, generateExceptionInformation);
7676
if (StackFrames.Any())
7777
{
78-
_stackTrace = string.Join("\n", StackFrames.Select(n => n.ToString()));
78+
_stackTrace = string.Join("\n", StackFrames.Select(n => n.ToString()).ToArray());
7979
}
8080
}
8181
CreateUnhandledExceptionLogInformation();

Runtime/Types/DeduplicationStrategy.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,36 @@ public enum DeduplicationStrategy
1414
/// Ignore deduplication strategy
1515
/// </summary>
1616
[Tooltip("Deduplication rules are disabled.")]
17+
#if UNITY_2019_2_OR_NEWER
1718
[InspectorName("Disable")]
19+
#endif
1820
None = 0,
1921

2022
/// <summary>
2123
/// Only stack trace
2224
/// </summary>
2325
[Tooltip("Faulting callstack - use the faulting callstack as a factor in client-side rate limiting.")]
24-
[InspectorName("Faulting callstack")]
26+
#if UNITY_2019_2_OR_NEWER
27+
[InspectorName("Faulting callstack")]
28+
#endif
2529
Default = 1,
2630

2731
/// <summary>
2832
/// Stack trace and exception type
2933
/// </summary>
3034
[Tooltip("Unity by default will validate ssl certificates. By using this option you can avoid ssl certificates validation. However, if you don't need to ignore ssl validation, please set this option to false.", order = 0)]
35+
#if UNITY_2019_2_OR_NEWER
3136
[InspectorName("Exception type")]
37+
#endif
3238
Classifier = 2,
3339

3440
/// <summary>
3541
/// Stack trace and exception message
3642
/// </summary>
3743
[Tooltip("Unity by default will validate ssl certificates. By using this option you can avoid ssl certificates validation. However, if you don't need to ignore ssl validation, please set this option to false.", order = 0)]
44+
#if UNITY_2019_2_OR_NEWER
3845
[InspectorName("Exception message")]
46+
#endif
3947
Message = 4
4048
}
4149
}

0 commit comments

Comments
 (0)