mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 18:36:12 +02:00
Refrain from pushing too much logging trafic.
In this patch we hard-code some cases when we know the log message won't be displayed anywhere so as to avoid sending it to the monitor thread. It certainly is a modularity violation, but given the performance impact...
This commit is contained in:
parent
422fab646a
commit
6c931975de
@ -36,9 +36,10 @@
|
||||
|
||||
(defun log-message (category description &rest arguments)
|
||||
"Send given message into our monitoring queue for processing."
|
||||
(send-event (make-log-message :category category
|
||||
:description description
|
||||
:arguments arguments)))
|
||||
(when (cl-log::category-messengers category)
|
||||
(send-event (make-log-message :category category
|
||||
:description description
|
||||
:arguments arguments))))
|
||||
|
||||
(defun new-label (section label &optional dbname)
|
||||
"Send an event to create a new LABEL for registering a shared state under
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user