From c122d17af3f59dfdd5e058d9b88bd52825905f59 Mon Sep 17 00:00:00 2001 From: boyska Date: Mon, 1 Mar 2021 11:45:15 +0100 Subject: [PATCH] dump conf at startup if DEBUG --- larigira/larigira.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/larigira/larigira.py b/larigira/larigira.py index e0ccb94..d82b878 100644 --- a/larigira/larigira.py +++ b/larigira/larigira.py @@ -3,6 +3,7 @@ This module is for the main application logic """ from __future__ import print_function +import json import logging import logging.config import os @@ -86,6 +87,10 @@ def main(): logging.Logger.debugv = debugv + logging.debug( + "Starting larigira with this conf:\n%s", + json.dumps(get_conf(), indent=2), + ) if get_conf()["MPD_WAIT_START"]: while True: