mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix syslog prefix
This commit is contained in:
parent
a1058bc7fe
commit
89a1936ce6
@ -344,6 +344,9 @@ class Logger(object):
|
||||
# setup format
|
||||
if not cfg.syslog_prefix:
|
||||
prefix = cfg.proc_name.replace(":", ".")
|
||||
else:
|
||||
prefix = cfg.syslog_prefix
|
||||
|
||||
prefix = "gunicorn.%s" % prefix
|
||||
fmt = logging.Formatter(r"%s: %s" % (prefix, fmt))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user