Skip to content

Commit

Permalink
Improvement/update signal fault message (#129)
Browse files Browse the repository at this point in the history
* Update BacktraceCrashReporter.swift

Update FaultMessage Attribute to return Termination Signal name

* Update Podfile.lock

Upgrade COCOAPODS to ver 1.15.2
  • Loading branch information
melekr authored Jun 25, 2024
1 parent bea9729 commit ae75324
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 2b7d3c7f6716bfb4ee9ab8a1ee475ca57c8165e9

COCOAPODS: 1.11.3
COCOAPODS: 1.15.2
3 changes: 2 additions & 1 deletion Sources/Public/BacktraceCrashReporter.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Foundation
import CrashReporter
import Darwin


/// A wrapper around `PLCrashReporter`.
Expand Down Expand Up @@ -34,7 +35,7 @@ extension BacktraceCrashReporter: CrashReporting {
return
}

attributesProvider.set(faultMessage: "siginfo_t.si_signo: \(signalInfo.si_signo)")
attributesProvider.set(faultMessage: "\(String(cString: strsignal(signalInfo.si_signo)))")

try? AttributesStorage.store(attributesProvider.dynamicAttributes, fileName: BacktraceCrashReporter.crashName)
try? AttachmentsStorage.store(attributesProvider.allAttachments, fileName: BacktraceCrashReporter.crashName)
Expand Down

0 comments on commit ae75324

Please sign in to comment.