From 2fbaced689e0871952423ea55591990919a80bdc Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 11 Apr 2019 21:18:36 -0700 Subject: [PATCH] removed naming conflict from previous commit, thanks Paolo --- gluon/widget.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gluon/widget.py b/gluon/widget.py index 093ce041..87558e18 100644 --- a/gluon/widget.py +++ b/gluon/widget.py @@ -1022,12 +1022,12 @@ def start(cron=True): # streaming on sys.stdout or sys.stderr loggers = [logging.getLogger()] loggers.extend(logging.Logger.manager.loggerDict.values()) - for logger in loggers: - if isinstance(logger, logging.PlaceHolder): continue - for h in logger.handlers[:]: + for l in loggers: + if isinstance(l, logging.PlaceHolder): continue + for h in l.handlers[:]: if isinstance(h, logging.StreamHandler) and \ h.stream in (sys.stdout, sys.stderr): - logger.removeHandler(h) + l.removeHandler(h) # NOTE: stderr.write() is still working logger.setLevel(options.debuglevel)