Changeset 7827


Ignore:
Timestamp:
9 Mar 2012, 14:13:37 (13 years ago)
Author:
uli
Message:

Fix this nasty logger problem: when we remove several loggers, we must
do it bottom to top. When we remove waeup.kofa.app after removing
waeup.kofa, we will get a new waeup.kofa logger. This was not visible
with waeup.sirp as the Python-internal sorting picked waeup.sirp after
waeup.sirp.app when looping unsorted over all logger names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/testing.py

    r7819 r7827  
    6060    new_loggers = [key for key in logging.root.manager.loggerDict
    6161                   if key not in old_loggers]
    62     for key in new_loggers:
     62    for key in sorted(new_loggers, reverse=True):
    6363        logger = logging.getLogger(key)
    6464        for handler in logger.handlers:
Note: See TracChangeset for help on using the changeset viewer.