rsyslog hardening (fixing a few weird things we noticed)

This commit is contained in:
Ryan Petrello
2020-04-08 13:38:35 -04:00
committed by Christian Adams
parent 70391f96ae
commit ce82b87d9f
3 changed files with 5 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ from django.conf import settings
class RSysLogHandler(logging.handlers.SysLogHandler):
append_nul = False
def emit(self, msg):
if not os.path.exists(settings.LOGGING['handlers']['external_logger']['address']):
return