From 7c24f7b1706dd464152ca3551c5775f90430f3e8 Mon Sep 17 00:00:00 2001 From: Mark Travis Date: Tue, 16 Jul 2019 21:04:34 -0700 Subject: [PATCH] Improve logging during process startup. --- src/ripple/app/main/Application.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ripple/app/main/Application.cpp b/src/ripple/app/main/Application.cpp index 6cd39bcd4..27d5498c0 100644 --- a/src/ripple/app/main/Application.cpp +++ b/src/ripple/app/main/Application.cpp @@ -53,6 +53,7 @@ #include #include #include +#include #include #include #include @@ -1157,9 +1158,6 @@ private: // bool ApplicationImp::setup() { - // VFALCO NOTE: 0 means use heuristics to determine the thread count. - m_jobQueue->setThreadCount (config_->WORKERS, config_->standalone()); - // We want to intercept and wait for CTRL-C to terminate the process m_signals.add (SIGINT); @@ -1182,9 +1180,14 @@ bool ApplicationImp::setup() if (logs_->threshold() > kDebug) logs_->threshold (kDebug); } + JLOG(m_journal.info()) << "process starting: " + << BuildInfo::getFullVersionString(); + // Optionally turn off logging to console. logs_->silent (config_->silent()); + m_jobQueue->setThreadCount (config_->WORKERS, config_->standalone()); + if (!config_->standalone()) timeKeeper_->run(config_->SNTP_SERVERS);