更新reconstruction流程,对conf_path的判断交由zlog内部完成
This commit is contained in:
@@ -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 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];
|
char zlog_rule_conf_content[MAX_HANDLE_LOG_PATH + 1];
|
||||||
time_t t;
|
time_t t;
|
||||||
struct tm local_time;
|
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] =
|
static unsigned char weekday_str[7][4] =
|
||||||
{"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
|
{"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
|
||||||
|
|
||||||
@@ -274,8 +272,6 @@ int MESA_handle_runtime_log_reconstruction(const char *conf_path)
|
|||||||
#endif
|
#endif
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void MESA_handle_runtime_log_destruction()
|
void MESA_handle_runtime_log_destruction()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user