fix bugs
This commit is contained in:
@@ -149,6 +149,7 @@ int MESA_read_runtime_log_handle_conf(void* handle, const char* conf_file_path){
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
struct runtime_log_handle* handle1 = (struct runtime_log_handle*)handle;
|
struct runtime_log_handle* handle1 = (struct runtime_log_handle*)handle;
|
||||||
|
delete(handle1->conf);
|
||||||
el::Configurations* conf = new el::Configurations(conf_file_path);
|
el::Configurations* conf = new el::Configurations(conf_file_path);
|
||||||
handle1->conf = conf;
|
handle1->conf = conf;
|
||||||
el::Loggers::reconfigureLogger(handle1->logger, *(handle1->conf));
|
el::Loggers::reconfigureLogger(handle1->logger, *(handle1->conf));
|
||||||
|
|||||||
Reference in New Issue
Block a user