From f7d2e5ae20439171673735050e37ff73a23ee605 Mon Sep 17 00:00:00 2001 From: Claudius Heine Date: Fri, 13 Oct 2017 12:20:03 +0200 Subject: [PATCH] config: added debug output of complete configuration It might be useful to see the merged configuration in case of debugging. This patch adds it to the debug output log level. Signed-off-by: Claudius Heine --- kas/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kas/config.py b/kas/config.py index cc4c4fd..f888f41 100644 --- a/kas/config.py +++ b/kas/config.py @@ -25,6 +25,7 @@ import os import logging +import pprint try: from distro import id as get_distro_id @@ -88,6 +89,9 @@ class Config: (self._config, missing_repo_names) = \ self.handler.get_config(repos=repo_paths) + logging.debug('Configuration from config file:\n%s', + pprint.pformat(self._config)) + if target: self._config['target'] = target if task: