diff options
author | Satoshi Fujii <fujii-satoshi@jp.fujitsu.com> | 2021-06-15 13:33:50 +0000 |
---|---|---|
committer | Satoshi Fujii <fujii-satoshi@jp.fujitsu.com> | 2021-06-18 07:40:46 +0000 |
commit | 313750bef0318c2204ce869fb2bdc4d4043a20e6 (patch) | |
tree | c7d4045cce3fe7a47284e20d97c6d47830238d22 /miss_htbt_service/get_logger.py | |
parent | d39331be3f55876a8a6fc31c5a10f2d68eefe0b0 (diff) |
Remove unused code
Just remove unused code
Signed-off-by: Satoshi Fujii <fujii-satoshi@jp.fujitsu.com>
Issue-ID: DCAEGEN2-2833
Change-Id: If81a5fcb918a2683e261807d6a3da5a8648e505d
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) |