diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-01 09:44:45 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-01 09:56:14 +0200 |
commit | d0a2e2eb877de37710eb01be5ba05f43e5565bb8 (patch) | |
tree | 88a353f25cba5fc32e11de73cf3ce4e1c3d51e8e /src/init.cpp | |
parent | 426dc16f7b74d5dc91a947bb22acb7a3a414bb8f (diff) |
Log BerkeleyDB version at startup
Prints the actual version of BerkeleyDB that is linked against, if
wallet support is enabled.
Useful for troubleshooting.
For example:
2014-05-01 07:44:02 Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)
2014-05-01 07:54:25 Using BerkeleyDB version Berkeley DB 5.1.29: (October 25, 20 11)
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index 6e6e4beed9..5f2a468730 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -603,6 +603,9 @@ bool AppInit2(boost::thread_group& threadGroup) 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); LogPrintf("Using OpenSSL version %s\n", SSLeay_version(SSLEAY_VERSION)); +#ifdef ENABLE_WALLET + LogPrintf("Using BerkeleyDB version %s\n", DbEnv::version(0, 0, 0)); +#endif if (!fLogTimestamps) LogPrintf("Startup time: %s\n", DateTimeStrFormat("%Y-%m-%d %H:%M:%S", GetTime())); LogPrintf("Default data directory %s\n", GetDefaultDataDir().string()); |