From fb88596c599f0572d653bdd2b7a798f052e9ae0b Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 3 Jul 2017 14:03:53 +0000 Subject: [PATCH] Fixed an issue with the scope of the logfunc variable in production. - Legacy-Id: 13761 --- ietf/utils/log.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ietf/utils/log.py b/ietf/utils/log.py index ce9e9e72f..648080b84 100644 --- a/ietf/utils/log.py +++ b/ietf/utils/log.py @@ -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: