fedmsg: stop notifying on error sent by notifs-backend

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-08-04 19:13:49 +02:00
parent 36616fc521
commit e9eb9d3167

View file

@ -39,6 +39,8 @@ class ContextInjector(logging.Filter):
current_hostname = socket.gethostname()
record.host = current_hostname
if "notifs-backend" in current_hostname:
return False
record.proc = current_process
record.pid = current_process.pid
record.proc_name = current_process.name