mirror of
https://github.com/Dielee/volvo2mqtt.git
synced 2026-08-13 03:09:52 +02:00
* 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:
co-authored by
Gert-jan Theunissen
parent
e5ece2116b
commit
6b419cfe3a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user