Fixed an issue with the scope of the logfunc variable in production.

- Legacy-Id: 13761
This commit is contained in:
Henrik Levkowetz 2017-07-03 14:03:53 +00:00
parent 08f0338555
commit fb88596c59

View file

@ -35,6 +35,7 @@ def getcaller():
def log(msg):
"Uses syslog by preference. Logs the given calling point and message."
global logfunc
if settings.SERVER_MODE == 'test':
return
elif settings.DEBUG == True: