File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -756,14 +756,7 @@ void InitParameterInteraction(ArgsManager& args)
756756void InitLogging (const ArgsManager& args)
757757{
758758 init::SetLoggingOptions (args);
759-
760- std::string version_string = FormatFullVersion ();
761- #ifdef DEBUG
762- version_string += " (debug build)" ;
763- #else
764- version_string += " (release build)" ;
765- #endif
766- LogPrintf (PACKAGE_NAME " version %s\n " , version_string);
759+ init::LogPackageVersion ();
767760}
768761
769762namespace { // Variables internal to initialization process only
Original file line number Diff line number Diff line change 66#include < config/bitcoin-config.h>
77#endif
88
9+ #include < clientversion.h>
910#include < compat/sanity.h>
1011#include < crypto/sha256.h>
1112#include < key.h>
@@ -152,4 +153,15 @@ bool StartLogging(const ArgsManager& args)
152153
153154 return true ;
154155}
156+
157+ void LogPackageVersion ()
158+ {
159+ std::string version_string = FormatFullVersion ();
160+ #ifdef DEBUG
161+ version_string += " (debug build)" ;
162+ #else
163+ version_string += " (release build)" ;
164+ #endif
165+ LogPrintf (PACKAGE_NAME " version %s\n " , version_string);
166+ }
155167} // namespace init
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ void AddLoggingArgs(ArgsManager& args);
2222void SetLoggingOptions (const ArgsManager& args);
2323void SetLoggingCategories (const ArgsManager& args);
2424bool StartLogging (const ArgsManager& args);
25+ void LogPackageVersion ();
2526} // namespace init
2627
2728#endif // BITCOIN_INIT_COMMON_H
You can’t perform that action at this time.
0 commit comments