From f99cfd7e4cc7d407c31f5ea420dbca01614f8c17 Mon Sep 17 00:00:00 2001 From: Michael Clemens Date: Tue, 8 Dec 2020 10:48:00 +0100 Subject: [PATCH] added verbose option --- pyBMNotify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyBMNotify.py b/pyBMNotify.py index 9de5531..9bef8d6 100644 --- a/pyBMNotify.py +++ b/pyBMNotify.py @@ -76,8 +76,8 @@ def on_mqtt(*args): if duration >= cfg.min_duration: if tg not in last_TG_activity or inactivity >= cfg.min_silence: msg = construct_message(call) - # DEBUG else: - # DEBUG print("ignored activity in TG " + str(tg) + " from " + callsign + ": last action " + str(inactivity) + " seconds ago.") + elif cfg.verbose: + print("ignored activity in TG " + str(tg) + " from " + callsign + ": last action " + str(inactivity) + " seconds ago.") last_TG_activity[tg] = now # finally write the message to the console and send a push notification if msg != "":