diff --git a/ambient_info.py b/ambient_info.py index 38a6400..4f3abca 100644 --- a/ambient_info.py +++ b/ambient_info.py @@ -13,7 +13,7 @@ try: from config import APP_NAME as ROOT_LOGGER_NAME except ImportError: ROOT_LOGGER_NAME = 'root' -logger = logging.getLogger(ROOT_LOGGER_NAME).getChild('main') +logger = logging.getLogger(ROOT_LOGGER_NAME) class meaner(dict): diff --git a/config_example/config.j2 b/config_example/config.j2 index 8f9c5a1..5fb25fc 100644 --- a/config_example/config.j2 +++ b/config_example/config.j2 @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: UTF-8 -*- +import logging import os -import report __BASEPATH__ = os.path.abspath(os.path.dirname(__file__)) @@ -28,7 +28,6 @@ else: # APP_NAME = "ambient_info" +DEBUG = False LOG_HOSTNAME = "loggy" # When DEBUG is True LOG_LEVEL = logging.INFO # STDOUT logging - -formatter = report.SHORT_FMT