[DEL]
1.删除openssl锁初始化函数 [Modify] 1.重构并修改redis异步回调函数代码 2.修改Makefiel,对moodycamel_field_stat2.cpp文件使用g++编译 [Add] 1.添加屏幕信息统计库libMESA_field_stat2.a 2.添加对C++静态库C调用的内部封装接口文件
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
#include "MESA_prof_load.h"
|
||||
#include "MESA_handle_logger.h"
|
||||
|
||||
void rt_get_pname_by_pid(pid_t pid, char *task_name)
|
||||
static void rt_get_pname_by_pid(pid_t pid, char *task_name)
|
||||
{
|
||||
#define BUF_SIZE 1024
|
||||
char proc_pid_path[BUF_SIZE];
|
||||
@@ -63,6 +63,8 @@ int mesa_logging_mkfile(char *file, size_t size)
|
||||
|
||||
void cert_syslog_init(char *config)
|
||||
{
|
||||
char run_log_path[256] = {0};
|
||||
|
||||
MESA_load_profile_int_def(config, (const char *)"SYSTEM",(const char *)"DEBUG_SWITCH",
|
||||
&logging_sc_lid.debug_switch, 1);
|
||||
MESA_load_profile_int_def(config, (const char *)"SYSTEM",(const char *)"RUN_LOG_LEVEL",
|
||||
@@ -72,9 +74,10 @@ void cert_syslog_init(char *config)
|
||||
|
||||
char file[64] = {0};
|
||||
mesa_logging_mkfile(file, 63);
|
||||
STRCAT(logging_sc_lid.run_log_path, file);
|
||||
//STRCAT(logging_sc_lid.run_log_path, file);
|
||||
snprintf(run_log_path, 255, "%s/%s", logging_sc_lid.run_log_path, file);
|
||||
|
||||
logging_sc_lid.run_log_handle = MESA_create_runtime_log_handle(logging_sc_lid.run_log_path, logging_sc_lid.run_log_level);
|
||||
logging_sc_lid.run_log_handle = MESA_create_runtime_log_handle(run_log_path, logging_sc_lid.run_log_level);
|
||||
if(logging_sc_lid.run_log_handle == NULL){
|
||||
printf("Create log runtime_log_handle error, init failed!");
|
||||
goto finish;
|
||||
|
||||
Reference in New Issue
Block a user