119 .default_unix_socket_path =
"",
120 .default_http_port = 8888
122 if(!
app().initialize<chain_plugin, net_plugin, producer_plugin, resource_monitor_plugin>(argc,
argv)) {
124 if( opts.count(
"help") || opts.count(
"version") || opts.count(
"full-version") || opts.count(
"print-default-config") ) {
129 if (
auto resmon_plugin =
app().find_plugin<resource_monitor_plugin>()) {
130 resmon_plugin->monitor_directory(
app().data_dir());
132 elog(
"resource_monitor_plugin failed to initialize");
136 ilog(
"${name} version ${ver} ${fv}",
137 (
"name", nodeop::config::node_executable_name)(
"ver",
app().version_string())
138 (
"fv",
app().version_string() ==
app().full_version_string() ?
"" :
app().full_version_string()) );
139 ilog(
"${name} using configuration file ${c}", (
"name", nodeop::config::node_executable_name)(
"c",
app().full_config_file_path().
string()));
140 ilog(
"${name} data directory is ${d}", (
"name", nodeop::config::node_executable_name)(
"d",
app().data_dir().
string()));
144 }
catch(
const extract_genesis_state_exception& e ) {
146 }
catch(
const fixed_reversible_db_exception& e ) {
148 }
catch(
const node_management_success& e ) {
152 if( e.top_message().find(
"atabase dirty flag set" ) != std::string::npos ) {
153 elog(
"database dirty flag set (likely due to unclean shutdown): replay required" );
157 elog(
"${e}", (
"e", e.to_detail_string()));
159 }
catch(
const boost::interprocess::bad_alloc& e ) {
162 }
catch(
const boost::exception& e ) {
163 elog(
"${e}", (
"e",boost::diagnostic_information(e)));
165 }
catch(
const std::runtime_error& e ) {
166 if( std::string(e.what()).find(
"atabase dirty flag set") != std::string::npos ) {
167 elog(
"database dirty flag set (likely due to unclean shutdown): replay required" );
170 elog(
"${e}", (
"e",e.what()));
173 }
catch(
const std::exception& e ) {
174 elog(
"${e}", (
"e",e.what()));
177 elog(
"unknown exception");
181 ilog(
"${name} successfully exiting", (
"name", nodeop::config::node_executable_name));
void initialize_logging()
@ NODE_MANAGEMENT_SUCCESS
void logging_conf_handler()