diff --git a/sources/main_node_tool.c b/sources/main_node_tool.c index 8862ab9933ce77307b234e4e61fea656602becbd..e9f3be4cef9b3240a9aaaebb65004e0c7983fd2e 100644 --- a/sources/main_node_tool.c +++ b/sources/main_node_tool.c @@ -352,16 +352,22 @@ int main(int argc, const char * argv[]) */ static int s_init(int argc, const char * argv[]) { + + if ( dap_common_init( DAP_APP_NAME, DAP_APP_NAME"_logs.txt") != 0 ) { + printf( "Fatal Error: Can't init common functions module" ); + return -2; + } + dap_config_init(SYSTEM_CONFIGS_DIR); if((g_config = dap_config_open(DAP_APP_NAME) ) == NULL) { log_it(L_CRITICAL,"Can't init general configurations"); return -1; } - if(dap_common_init(DAP_APP_NAME"_logs.txt")!=0){ - log_it(L_CRITICAL,"Can't init common functions module"); - return -2; - } +// if(dap_common_init(DAP_APP_NAME"_logs.txt")!=0){ +// log_it(L_CRITICAL,"Can't init common functions module"); +// return -2; +// } if (dap_chain_init() != 0 ){ log_it(L_CRITICAL,"Can't chain module");