Skip to content

Commit b4cb9cc

Browse files
authored
Merge pull request #701 from evoskuil/master
Fix parser with HAVE_LOGV disabled, add hardware info to startup.
2 parents 05508f9 + 14079b7 commit b4cb9cc

File tree

4 files changed

+28
-18
lines changed

4 files changed

+28
-18
lines changed

console/executor_dumps.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,19 @@ void executor::dump_version() const
6161
// The "try" functions are safe for instructions not compiled in.
6262
void executor::dump_hardware() const
6363
{
64-
logger("Intrinsics...");
65-
logger(format("arm..... platform:%1%.") % with_arm);
66-
logger(format("intel... platform:%1%.") % with_xcpu);
67-
logger(format("avx512.. platform:%1% compiled:%2%.") % system::try_avx512() % with_avx512);
68-
logger(format("avx2.... platform:%1% compiled:%2%.") % system::try_avx2() % with_avx2);
69-
logger(format("sse41... platform:%1% compiled:%2%.") % system::try_sse41() % with_sse41);
70-
logger(format("shani... platform:%1% compiled:%2%.") % system::try_shani() % with_shani);
71-
logger(format("neon.... platform:%1% compiled:%2%.") % system::try_neon() % with_neon);
64+
logger(BN_HARDWARE_HEADER);
65+
logger(format("arm..... " BN_HARDWARE_TABLE1) % with_arm);
66+
logger(format("intel... " BN_HARDWARE_TABLE1) % with_xcpu);
67+
logger(format("avx512.. " BN_HARDWARE_TABLE2) % system::try_avx512() % with_avx512);
68+
logger(format("avx2.... " BN_HARDWARE_TABLE2) % system::try_avx2() % with_avx2);
69+
logger(format("sse41... " BN_HARDWARE_TABLE2) % system::try_sse41() % with_sse41);
70+
logger(format("shani... " BN_HARDWARE_TABLE2) % system::try_shani() % with_shani);
71+
logger(format("neon.... " BN_HARDWARE_TABLE2) % system::try_neon() % with_neon);
7272
}
7373

7474
// logging compilation and initial values.
7575
void executor::dump_options() const
7676
{
77-
logger(BN_NODE_INTERRUPT);
7877
logger(BN_LOG_TABLE_HEADER);
7978
logger(format("[a]pplication.. " BN_LOG_TABLE) % levels::application_defined % toggle_.at(levels::application));
8079
logger(format("[n]ews......... " BN_LOG_TABLE) % levels::news_defined % toggle_.at(levels::news));

console/executor_runner.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ bool executor::do_run()
141141
// Stopped by stopper.
142142
capture_.start();
143143
dump_version();
144+
dump_hardware();
144145
dump_options();
146+
logger(BN_NODE_INTERRUPT);
145147

146148
// Create node.
147149
metadata_.configured.network.initialize();

console/localize.hpp

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,22 +232,31 @@ namespace node {
232232
#define BN_CHANNEL_STOP_TARGET \
233233
"Stop target: %1%"
234234

235-
#define BN_LOG_TABLE \
236-
"compiled:%1% enabled:%2%."
235+
#define BN_VERSION_MESSAGE \
236+
"Version Information...\n" \
237+
"libbitcoin-node: %1%\n" \
238+
"libbitcoin-database: %2%\n" \
239+
"libbitcoin-network: %3%\n" \
240+
"libbitcoin-system: %4%"
241+
242+
#define BN_HARDWARE_HEADER \
243+
"Hardware configuration..."
244+
#define BN_HARDWARE_TABLE1 \
245+
"platform:%1%."
246+
#define BN_HARDWARE_TABLE2 \
247+
"platform:%1% compiled:%2%."
248+
237249
#define BN_LOG_TABLE_HEADER \
238250
"Log system configuration..."
251+
#define BN_LOG_TABLE \
252+
"compiled:%1% enabled:%2%."
253+
239254
#define BN_LOG_INITIALIZE_FAILURE \
240255
"Failed to initialize logging."
241256
#define BN_USING_CONFIG_FILE \
242257
"Using config file: %1%"
243258
#define BN_USING_DEFAULT_CONFIG \
244259
"Using default configuration settings."
245-
#define BN_VERSION_MESSAGE \
246-
"Version Information...\n" \
247-
"libbitcoin-node: %1%\n" \
248-
"libbitcoin-database: %2%\n" \
249-
"libbitcoin-network: %3%\n" \
250-
"libbitcoin-system: %4%"
251260
#define BN_LOG_HEADER \
252261
"====================== startup ======================="
253262
#define BN_NODE_FOOTER \

src/parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,8 +1052,8 @@ options_metadata parser::load_settings() THROWS
10521052
"log.verbose",
10531053
value<bool>(&configured.log.verbose),
10541054
"Enable verbose logging, defaults to false."
1055+
)
10551056
#endif
1056-
)
10571057
(
10581058
"log.maximum_size",
10591059
value<uint32_t>(&configured.log.maximum_size),

0 commit comments

Comments
 (0)