增加在日志中输出kni版本号
This commit is contained in:
@@ -1752,8 +1752,8 @@ static void keepalive_replay_data_free_cb(void *data)
|
|||||||
FREE(&data);
|
FREE(&data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern "C" int kni_init(){
|
extern "C" int kni_init(){
|
||||||
|
char *kni_git_verison = (char*)KNI_GIT_VERSION;
|
||||||
const char *profile = "./conf/kni/kni.conf";
|
const char *profile = "./conf/kni/kni.conf";
|
||||||
const char *section = "global";
|
const char *section = "global";
|
||||||
//init logger
|
//init logger
|
||||||
@@ -1786,6 +1786,9 @@ extern "C" int kni_init(){
|
|||||||
printf("Failed at create logger: %s", log_path);
|
printf("Failed at create logger: %s", log_path);
|
||||||
goto error_out;
|
goto error_out;
|
||||||
}
|
}
|
||||||
|
//kni_git_log
|
||||||
|
KNI_LOG_ERROR(local_logger, "----------kni version is %s-----------", kni_git_verison);
|
||||||
|
|
||||||
ret = MESA_load_profile_int_nodef(profile, section, "tfe_node_count", &tfe_node_count);
|
ret = MESA_load_profile_int_nodef(profile, section, "tfe_node_count", &tfe_node_count);
|
||||||
if(ret < 0){
|
if(ret < 0){
|
||||||
KNI_LOG_ERROR(local_logger, "MESA_prof_load: tfe_node_count not set, profile is %s, section is %s", profile, section);
|
KNI_LOG_ERROR(local_logger, "MESA_prof_load: tfe_node_count not set, profile is %s, section is %s", profile, section);
|
||||||
|
|||||||
Reference in New Issue
Block a user