Skip to content

Commit

Permalink
Assert instead of fatalError.
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Strijdom committed Sep 10, 2021
1 parent 463fa26 commit 104354e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion JustLog/Classes/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ public final class Logger: NSObject {
if let sanitizeClosure = sanitizeClosure {
return sanitizeClosure
} else {
fatalError("Sanitization closure not set")
assertionFailure("Sanitization closure not set")
return { message, _ in
return message
}
}
}
set {
Expand Down

0 comments on commit 104354e

Please sign in to comment.