From cafd85638cd0eae6adba796995ee3f46596fec21 Mon Sep 17 00:00:00 2001 From: Abit Date: Fri, 14 Sep 2018 02:11:37 +0200 Subject: [PATCH 1/2] Added comment in config.ini about logging.ini --- libraries/app/config_util.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/app/config_util.cpp b/libraries/app/config_util.cpp index 341fd00425..2bd4ce3f01 100644 --- a/libraries/app/config_util.cpp +++ b/libraries/app/config_util.cpp @@ -283,6 +283,9 @@ static void create_new_config_file(const fc::path& config_ini_path, const fc::pa out_cfg << "\n"; } + out_cfg << "\n" + << "# Logging configuration is in logging.ini by default.\n" + << "# Adding logging configuration here then logging.ini will be ignored, and may cause unexpected issues.\n"; out_cfg.close(); } @@ -333,4 +336,4 @@ namespace graphene { namespace app { } } -} } // graphene::app \ No newline at end of file +} } // graphene::app From c99e2a5dc7aa495f956577961c29254f08157e9f Mon Sep 17 00:00:00 2001 From: Abit Date: Fri, 14 Sep 2018 14:33:21 +0200 Subject: [PATCH 2/2] Corrected comment in config.ini about logging.ini --- libraries/app/config_util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/app/config_util.cpp b/libraries/app/config_util.cpp index 2bd4ce3f01..6bfe946bd7 100644 --- a/libraries/app/config_util.cpp +++ b/libraries/app/config_util.cpp @@ -284,8 +284,8 @@ static void create_new_config_file(const fc::path& config_ini_path, const fc::pa } out_cfg << "\n" - << "# Logging configuration is in logging.ini by default.\n" - << "# Adding logging configuration here then logging.ini will be ignored, and may cause unexpected issues.\n"; + << "# Logging configuration is loaded from logging.ini by default.\n" + << "# If logging.ini exists, logging configuration added in this file will be ignored.\n"; out_cfg.close(); }