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)
756
756
void InitLogging (const ArgsManager& args)
757
757
{
758
758
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 ();
767
760
}
768
761
769
762
namespace { // Variables internal to initialization process only
Original file line number Diff line number Diff line change 6
6
#include < config/bitcoin-config.h>
7
7
#endif
8
8
9
+ #include < clientversion.h>
9
10
#include < compat/sanity.h>
10
11
#include < crypto/sha256.h>
11
12
#include < key.h>
@@ -152,4 +153,15 @@ bool StartLogging(const ArgsManager& args)
152
153
153
154
return true ;
154
155
}
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
+ }
155
167
} // namespace init
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ void AddLoggingArgs(ArgsManager& args);
22
22
void SetLoggingOptions (const ArgsManager& args);
23
23
void SetLoggingCategories (const ArgsManager& args);
24
24
bool StartLogging (const ArgsManager& args);
25
+ void LogPackageVersion ();
25
26
} // namespace init
26
27
27
28
#endif // BITCOIN_INIT_COMMON_H
You can’t perform that action at this time.
0 commit comments