diff --git a/Tst/confignator/Makefile b/Tst/confignator/Makefile index 52c50f191f26d98bf2f7a0015e7b0dff8004be88..0475e8d37afe29a3d036f492a5ed702a6e58e51b 100644 --- a/Tst/confignator/Makefile +++ b/Tst/confignator/Makefile @@ -25,12 +25,14 @@ build: rm -f $(CONFIGNATOR_CFG) # create the new file containing the path to the configuration file @echo "# This is the configuration file for the confignator and is a generated file, created during the installation of the confignator package." >> $(CONFIGNATOR_CFG) - @echo "# Modifications have to be done in the Makefile of the confignator package and a reinstall of it is needed!\n" >> $(CONFIGNATOR_CFG) + @echo -e "# Modifications have to be done in the Makefile of the confignator package and a reinstall of it is needed!\n" >> $(CONFIGNATOR_CFG) @echo "[confignator-paths]" >> $(CONFIGNATOR_CFG) @echo "basic-path = $(BASIC_PATH)" >> $(CONFIGNATOR_CFG) @echo "basic-cfg = $(BASIC_CONFI_CFG)" >> $(CONFIGNATOR_CFG) @echo "docu = $(DOCU_INDEX_HTML)" >> $(CONFIGNATOR_CFG) - @echo "log-file = ''\n" >> $(CONFIGNATOR_CFG) + @echo -e "log-file = ''\n" >> $(CONFIGNATOR_CFG) + @echo "[confignator-logging]" >> $(CONFIGNATOR_CFG) + @echo -e "level = INFO\n" >> $(CONFIGNATOR_CFG) # build the Python package # python3 setup.py sdist; python3 setup.py bdist_wheel diff --git a/Tst/confignator/confignator/config.py b/Tst/confignator/confignator/config.py index 72f1e93c4c8f95e0b5a8159be6039a132a16434d..bc12e3a5f9334d8e0fa7c1547f329b15e2179270 100755 --- a/Tst/confignator/confignator/config.py +++ b/Tst/confignator/confignator/config.py @@ -76,7 +76,8 @@ logging_format = fmt logging_level_file = logging.INFO logging_level_console = logging.WARNING module_logger = logging.getLogger(__name__) -module_logger.setLevel(logging.DEBUG) +# module_logger.setLevel(logging.INFO) +module_logger.setLevel(getattr(logging, cfg.get('confignator-logging', 'level'))) logging_file_name = 'confignator.log'