Skip to content

Commit

Permalink
Ask *LOG-LISP-ERRORS-P* before logging an error.
Browse files Browse the repository at this point in the history
  • Loading branch information
phmarek authored and stassats committed Mar 5, 2021
1 parent fa36e20 commit 0023dd3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions util.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,9 @@ stopped right away so no other part of the software is impacted by them."
((error
;; abort if there's an error which isn't caught inside
(lambda (cond)
(log-message* *lisp-errors-log-level*
"Error while processing connection: ~A" cond)
(when *log-lisp-errors-p*
(log-message* *lisp-errors-log-level*
"Error while processing connection: ~A" cond))
(return)))
(warning
;; log all warnings which aren't caught inside
Expand Down

0 comments on commit 0023dd3

Please sign in to comment.