From 6066af50ac383ed43ce3482b375b0fbdfd2a06d2 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Sat, 10 Aug 2024 02:40:29 +0200 Subject: [PATCH] debuging --- src/handler/mhz19_co2.py | 1 + src/main.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handler/mhz19_co2.py b/src/handler/mhz19_co2.py index 925308b..79aa9a1 100644 --- a/src/handler/mhz19_co2.py +++ b/src/handler/mhz19_co2.py @@ -14,6 +14,7 @@ class Mhz19Co2: def read(self) -> int | None: data = mh_z19.read() + logging.debug(str(data)) if not data: return None diff --git a/src/main.py b/src/main.py index 22c69d3..d068a9f 100644 --- a/src/main.py +++ b/src/main.py @@ -16,7 +16,7 @@ from config import climate_log_file from handler.action_queue import ActionQueue from handler.history import get_recent_entries -logging.getLogger().setLevel(logging.INFO) +logging.getLogger().setLevel(logging.DEBUG) # Start services