Skip to content

Commit a3dd78a

Browse files
authored
fix(ios): avoid referencing logger during init (#467)
updates fatal issue reporting init paths to avoid logging
1 parent 7728ab6 commit a3dd78a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

platform/swift/source/Capture.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,11 @@ extension Logger {
111111
/// - parameter type: mechanism for crash detection
112112
static func initFatalIssueReporting(_ type: IssueReporterType = .builtIn) {
113113
if issueReporterInitResult.0 != .notInitialized {
114-
log(level: .warning, message: "Fatal issue reporting already being initialized")
115114
return
116115
}
117116

118117
issueReporterInitResult = (.initializing, 0)
119118
guard let outputDir = Logger.reportCollectionDirectory() else {
120-
log(level: .warning, message: "Fatal issue reporting output directory not defined, cannot enable reporting")
121119
issueReporterInitResult = (.initialized(.missingReportsDirectory), 0)
122120
return
123121
}
@@ -126,7 +124,6 @@ extension Logger {
126124
switch type {
127125
case .builtIn:
128126
#if targetEnvironment(simulator)
129-
log(level: .info, message: "Fatal issue reporting disabled for simulated devices")
130127
return .initialized(.unsupportedHardware)
131128
#else
132129
let reporter = DiagnosticEventReporter(outputDir: outputDir, sdkVersion: capture_get_sdk_version())

0 commit comments

Comments
 (0)