Change log format, rename, join server/portal logs

This commit is contained in:
Griatch 2018-01-19 01:27:52 +01:00
parent 4233298345
commit 713766b33a
9 changed files with 118 additions and 6 deletions

View file

@ -212,6 +212,12 @@ class Website(server.Site):
"""
noisy = False
def logPrefix(self):
"How to be named in logs"
if hasattr(self, "is_portal") and self.is_portal:
return "Webserver-proxy"
return "Webserver"
def log(self, request):
"""Conditional logging"""
if _DEBUG: