Fix regex for some emails #98 // Add option to disable log completely #96 (#99)

* Update volovData.username regex (#98)

* Add option to disable log completely #96

---------

Co-authored-by: Gert-jan Theunissen <gurtjun@users.noreply.github.com>
This commit is contained in:
Linus Dietz
2023-09-08 11:40:21 +02:00
committed by GitHub
co-authored by Gert-jan Theunissen
parent e5ece2116b
commit 6b419cfe3a
6 changed files with 23 additions and 3 deletions
+4
View File
@@ -68,6 +68,10 @@ def setup_logging():
if settings["debug"]:
logger.setLevel(logging.DEBUG)
if "disable_logging" in settings:
if settings["disable_logging"]:
logger.setLevel(logging.ERROR)
def check_existing_folder():
Path("/addons/volvo2mqtt/log/").mkdir(parents=True, exist_ok=True)