Fixed an issue with the scope of the logfunc variable in production.
- Legacy-Id: 13761
This commit is contained in:
parent
08f0338555
commit
fb88596c59
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue