更新reconstruction流程,对conf_path的判断交由zlog内部完成

This commit is contained in:
yangwei
2020-09-07 19:49:21 +08:00
parent 40512a0421
commit 2e4c2d3098

View File

@@ -242,13 +242,11 @@ int MESA_handle_runtime_log_creation(const char *conf_path)
int MESA_handle_runtime_log_reconstruction(const char *conf_path)
{
int rc = zlog_reload(conf_path);
#ifdef DEBUG
char zlog_rule_conf_content[MAX_HANDLE_LOG_PATH + 1];
time_t t;
struct tm local_time;
if (access(conf_path, R_OK) != -1)
{
int rc = zlog_reload(conf_path);
#ifdef DEBUG
static unsigned char weekday_str[7][4] =
{"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
@@ -273,8 +271,6 @@ int MESA_handle_runtime_log_reconstruction(const char *conf_path)
}
#endif
return rc;
}
return -1;
}
void MESA_handle_runtime_log_destruction()