diff options
Diffstat (limited to 'src/init/common.cpp')
-rw-r--r-- | src/init/common.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/init/common.cpp b/src/init/common.cpp index 35776080dc..79e0c9da78 100644 --- a/src/init/common.cpp +++ b/src/init/common.cpp @@ -6,6 +6,7 @@ #include <config/bitcoin-config.h> #endif +#include <clientversion.h> #include <compat/sanity.h> #include <crypto/sha256.h> #include <key.h> @@ -152,4 +153,15 @@ bool StartLogging(const ArgsManager& args) return true; } + +void LogPackageVersion() +{ + std::string version_string = FormatFullVersion(); +#ifdef DEBUG + version_string += " (debug build)"; +#else + version_string += " (release build)"; +#endif + LogPrintf(PACKAGE_NAME " version %s\n", version_string); +} } // namespace init |