mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 22:16:00 -03:30
rsyslog hardening (fixing a few weird things we noticed)
This commit is contained in:
committed by
Christian Adams
parent
70391f96ae
commit
ce82b87d9f
@@ -97,7 +97,7 @@ class LogstashFormatterBase(logging.Formatter):
|
||||
|
||||
@classmethod
|
||||
def serialize(cls, message):
|
||||
return bytes(json.dumps(message, cls=DjangoJSONEncoder), 'utf-8')
|
||||
return ' ' + json.dumps(message, cls=DjangoJSONEncoder) + '\000'
|
||||
|
||||
|
||||
class LogstashFormatter(LogstashFormatterBase):
|
||||
|
||||
Reference in New Issue
Block a user