Filter logs line based and in binary mode without decoding utf-8

This commit is contained in:
Alexander Graf
2024-10-17 15:26:32 +02:00
parent 4ca111964b
commit 4a49234afa
4 changed files with 29 additions and 27 deletions

View File

@@ -11,10 +11,10 @@ from podop import run_server
from socrate import system, conf
system.set_env(log_filters=[
r'(dis)?connect from localhost\[(\:\:1|127\.0\.0\.1)\]( quit=1 commands=1)?$',
r'haproxy read\: short protocol header\: QUIT$',
r'discarding EHLO keywords\: PIPELINING$'
])
rb'(dis)?connect from localhost\[(\:\:1|127\.0\.0\.1)\]( quit=1 commands=1)?$',
rb'haproxy read\: short protocol header\: QUIT$',
rb'discarding EHLO keywords\: PIPELINING$'
])
os.system("flock -n /queue/pid/master.pid rm /queue/pid/master.pid")