diff --git a/Dockerfile b/Dockerfile index 9d7ee2c0..f2b9f070 100644 --- a/Dockerfile +++ b/Dockerfile @@ -93,8 +93,8 @@ EXPOSE 59777 # default exec/config files ADD docker/default_config.ini /etc/peerplays/config.ini +ADD docker/logging.ini /etc/peerplays/logging.ini ADD docker/peerplaysentry.sh /usr/local/bin/peerplaysentry.sh -ADD docker/default_config.ini /usr/local/bin/witness_node_data_dir/config.ini RUN chmod a+x /usr/local/bin/peerplaysentry.sh # Make Docker send SIGINT instead of SIGTERM to the daemon diff --git a/docker/peerplaysentry.sh b/docker/peerplaysentry.sh index 31caeef2..872ac91e 100644 --- a/docker/peerplaysentry.sh +++ b/docker/peerplaysentry.sh @@ -78,6 +78,8 @@ fi ## This link has been created in Dockerfile, already ln -f -s /etc/peerplays/config.ini /var/lib/peerplays +ln -f -s /etc/peerplays/logging.ini /var/lib/peerplays + # Plugins need to be provided in a space-separated list, which # makes it necessary to write it like this if [[ ! -z "$PEERPLAYSD_PLUGINS" ]]; then diff --git a/libraries/app/config_util.cpp b/libraries/app/config_util.cpp index f06291b7..8cb1efb1 100644 --- a/libraries/app/config_util.cpp +++ b/libraries/app/config_util.cpp @@ -208,6 +208,8 @@ static const boost::shared_ptr new_option_description( static void load_config_file(const fc::path& config_ini_path, const bpo::options_description& cfg_options, bpo::variables_map& options ) { + ilog("Loading config file at ${path}", ("path", config_ini_path)); + deduplicator dedup; bpo::options_description unique_options("Graphene Witness Node"); for( const boost::shared_ptr opt : cfg_options.options() ) @@ -224,6 +226,7 @@ static void load_config_file(const fc::path& config_ini_path, const bpo::options static bool load_logging_config_file(const fc::path& config_ini_path) { + ilog("Loading logging config file at ${path}", ("path", config_ini_path)); // try to get logging options from the config file. try {