add file logging to Docker
This commit is contained in:
parent
96e2d1718a
commit
faddc78760
3 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -208,6 +208,8 @@ static const boost::shared_ptr<bpo::option_description> 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<bpo::option_description> 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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue