diff options
Diffstat (limited to 'miss_htbt_service/get_logger.py')
-rw-r--r-- | miss_htbt_service/get_logger.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/miss_htbt_service/get_logger.py b/miss_htbt_service/get_logger.py index bc8fea0..c58a945 100644 --- a/miss_htbt_service/get_logger.py +++ b/miss_htbt_service/get_logger.py @@ -20,7 +20,6 @@ import logging.handlers '''Configures the module root logger''' root = logging.getLogger() if root.handlers: - # root.handlers.clear() del root.handlers[:] formatter = logging.Formatter('%(asctime)s | %(name)s | %(module)s | %(funcName)s | %(lineno)d | %(levelname)s | %(message)s') handler = logging.StreamHandler() @@ -32,10 +31,6 @@ root.addHandler(fhandler) root.setLevel("DEBUG") -class BadEnviornmentENVNotFound(Exception): - pass - - def get_logger(module=None): '''Returns a module-specific logger or global logger if the module is None''' return root if module is None else root.getChild(module) |