diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-01-16 11:48:33 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-01-16 11:48:33 +0100 |
| commit | 0c74e2e89011053607327d8308025b6f952a3248 (patch) | |
| tree | b3fbb924a6300ee37ec53596b5dd4511f022d365 /src/init.cpp | |
| parent | Merge #11904: Add a lock to the wallet directory (diff) | |
| download | discoin-0c74e2e89011053607327d8308025b6f952a3248.tar.xz discoin-0c74e2e89011053607327d8308025b6f952a3248.zip | |
Log debug build status and warn when running benchmarks
Log whether the starting instance of bitcoin core is a debug or release
build (--enable-debug).
Also warn when running the benchmarks with a debug build, to prevent
mistakes comparing debug to non-debug results.
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index b48802637..7abd0c9ba 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -808,7 +808,13 @@ void InitLogging() fLogIPs = gArgs.GetBoolArg("-logips", DEFAULT_LOGIPS); 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\n", FormatFullVersion()); + std::string version_string = FormatFullVersion(); +#ifdef DEBUG + version_string += " (debug build)"; +#else + version_string += " (release build)"; +#endif + LogPrintf("Bitcoin version %s\n", version_string); } namespace { // Variables internal to initialization process only |