chg: Follow best practices and remove the logging handler.

Fixes: #717
Reference: https://docs.python.org/3/howto/logging.html#configuring-logging-for-a-library
Documentation: https://docs.python.org/3/howto/logging.html
pull/749/head
Raphaël Vinot 2021-03-16 18:27:56 +01:00
parent 3252361b3c
commit 00ba313eae
1 changed files with 0 additions and 7 deletions

View File

@ -3,14 +3,7 @@ import logging
import sys import sys
import warnings import warnings
FORMAT = "%(levelname)s [%(filename)s:%(lineno)s - %(funcName)s() ] %(message)s"
formatter = logging.Formatter(FORMAT)
default_handler = logging.StreamHandler()
default_handler.setFormatter(formatter)
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
logger.addHandler(default_handler)
logger.setLevel(logging.WARNING)
def warning_2022(): def warning_2022():