Skip to content

Commit

Permalink
api: slack detail for unknown security event
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredh159 committed Oct 4, 2024
1 parent e468f33 commit ad6ae66
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ extension LogSecurityEvent: Resolver {

guard let event = Gertie.SecurityEvent.MacApp(rawValue: input.event) else {
if input.event != "appUpdateInitiated" { // <-- removed for noise
await with(dependency: \.slack)
.sysLog(to: "errors", "Received unknown security event: `\(input.event)`")
await with(dependency: \.slack).sysLog(
to: "errors",
"Unknown security event: `\(input.event)`, detail: \(input.detail ?? "(nil)")"
)
}
return .success
}
Expand Down

0 comments on commit ad6ae66

Please sign in to comment.