Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions platform/swift/source/Capture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,11 @@ extension Logger {
/// - parameter type: mechanism for crash detection
static func initFatalIssueReporting(_ type: IssueReporterType = .builtIn) {
if issueReporterInitResult.0 != .notInitialized {
log(level: .warning, message: "Fatal issue reporting already being initialized")
return
}

issueReporterInitResult = (.initializing, 0)
guard let outputDir = Logger.reportCollectionDirectory() else {
log(level: .warning, message: "Fatal issue reporting output directory not defined, cannot enable reporting")
issueReporterInitResult = (.initialized(.missingReportsDirectory), 0)
return
}
Expand All @@ -126,7 +124,6 @@ extension Logger {
switch type {
case .builtIn:
#if targetEnvironment(simulator)
log(level: .info, message: "Fatal issue reporting disabled for simulated devices")
return .initialized(.unsupportedHardware)
#else
let reporter = DiagnosticEventReporter(outputDir: outputDir, sdkVersion: capture_get_sdk_version())
Expand Down
Loading