We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f043778 commit deca593Copy full SHA for deca593
RxSwift/ObservableType+Extensions.swift
@@ -50,7 +50,7 @@ extension ObservableType {
50
51
let synchronizationTracker = SynchronizationTracker()
52
53
- let callStack = Thread.callStackSymbols
+ let callStack = Hooks.recordCallStackOnError ? Thread.callStackSymbols : []
54
55
let observer = AnonymousObserver<E> { event in
56
RxSwift/Rx.swift
@@ -135,5 +135,8 @@ func decrementChecked(_ i: inout Int) throws -> Int {
135
136
/// RxSwift global hooks
137
public enum Hooks {
138
+
139
+ // Should capture call stack
140
+ public static var recordCallStackOnError: Bool = false
141
142
}
0 commit comments