Skip to content

Commit d0a2e2e

Browse files
committed
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)
1 parent 426dc16 commit d0a2e2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/init.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,9 @@ bool AppInit2(boost::thread_group& threadGroup)
603603
LogPrintf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
604604
LogPrintf("Bitcoin version %s (%s)\n", FormatFullVersion(), CLIENT_DATE);
605605
LogPrintf("Using OpenSSL version %s\n", SSLeay_version(SSLEAY_VERSION));
606+
#ifdef ENABLE_WALLET
607+
LogPrintf("Using BerkeleyDB version %s\n", DbEnv::version(0, 0, 0));
608+
#endif
606609
if (!fLogTimestamps)
607610
LogPrintf("Startup time: %s\n", DateTimeStrFormat("%Y-%m-%d %H:%M:%S", GetTime()));
608611
LogPrintf("Default data directory %s\n", GetDefaultDataDir().string());

0 commit comments

Comments
 (0)