Dissociate DEBUG variables

This commit is contained in:
2026-08-23 17:48:04 +02:00
parent 3c50fc4d0e
commit fe31ac978a
3 changed files with 5 additions and 3 deletions
+2
View File
@@ -1,7 +1,9 @@
# Debugging and others
DEBUG=True
DEBUG_MESSAGES=True
DEBUG_DANGEROUS_AREA=False
DEBUG_TEMPERATURE_ALERT=False
DEBUG_SHORTER_COOKING_PLAN=True
# Technitian Web Server
TECHNICIAN_WEB_SERVER_HOST = "192.168.50.1"
+2 -2
View File
@@ -1,6 +1,6 @@
from shared.config import DEBUG
from shared.config import DEBUG_MESSAGES
def log(message):
"""Log a message to the console if DEBUG is enabled."""
if DEBUG:
if DEBUG_MESSAGES:
print(f"\n{message}")