diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-07-22 18:06:59 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-07-22 18:24:20 +0200 |
commit | 633fe10869abe89d32d657c2ae8944daa97e4f22 (patch) | |
tree | a22bce89ecd40092ad08a8f43ae662b58490a4c9 /src/init.cpp | |
parent | 45d1f5932ba85b8e5f3e2cc6839bf7a257ca460a (diff) | |
parent | 27d760580456d206c5a02ef29797f296f510099c (diff) |
Merge pull request #6149
27d7605 Buffer log messages and explicitly open logs (Adam Weiss)
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index 4addc663c8..ecf05d95b4 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -668,6 +668,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) fLogTimestamps = GetBoolArg("-logtimestamps", true); fLogIPs = GetBoolArg("-logips", false); + LogPrintf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); + LogPrintf("Bitcoin version %s (%s)\n", FormatFullVersion(), CLIENT_DATE); + // when specifying an explicit binding address, you want to listen on it // even when -connect or -proxy is specified if (mapArgs.count("-bind")) { @@ -941,8 +944,10 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) #endif if (GetBoolArg("-shrinkdebugfile", !fDebug)) ShrinkDebugFile(); - LogPrintf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); - LogPrintf("Bitcoin version %s (%s)\n", FormatFullVersion(), CLIENT_DATE); + + if (fPrintToDebugLog) + OpenDebugLog(); + LogPrintf("Using OpenSSL version %s\n", SSLeay_version(SSLEAY_VERSION)); #ifdef ENABLE_WALLET LogPrintf("Using BerkeleyDB version %s\n", DbEnv::version(0, 0, 0)); |