From dd850023a36afd37808f83a9eeb6216813d04ed6 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Thu, 24 Jul 2025 14:35:50 +0200 Subject: [PATCH] fixes due to logging change --- ambient_info.py | 2 +- config_example/config.j2 | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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