From d34fedaf65c8a1a95d2a0a9d2d6800af3a7c3c46 Mon Sep 17 00:00:00 2001 From: JR Conlin Date: Wed, 22 May 2024 16:15:41 -0700 Subject: [PATCH] f r's Co-authored-by: Philip Jenvey --- tools/tokenserver/util.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/tokenserver/util.py b/tools/tokenserver/util.py index 304baade91..c87857bd50 100644 --- a/tools/tokenserver/util.py +++ b/tools/tokenserver/util.py @@ -44,9 +44,7 @@ def configure_script_logging(opts=None, logger_name=""): max(logging.DEBUG, logging.WARNING - (verbosity * 10)) or \ logger.getEffectiveLevel() - # if we've already written a log message, the handler may already - # be defined. We don't want to duplicate messages if possible, so - # check and potentially adjust the existing logger's handler. + # if we've previously setup a handler, adjust it instead if logger.hasHandlers(): handler = logger.handlers[0] else: