From 0023dd3927e5840f1f02f9a8bdab2b4a7037c652 Mon Sep 17 00:00:00 2001 From: Philipp Marek Date: Mon, 1 Mar 2021 07:41:41 +0100 Subject: [PATCH] Ask *LOG-LISP-ERRORS-P* before logging an error. --- util.lisp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/util.lisp b/util.lisp index 6279055..e104472 100644 --- a/util.lisp +++ b/util.lisp @@ -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