Mod aaa-12 modify finding spell error
RCA: SOL: 修改人:zhangtao 检视人:
This commit is contained in:
parent
4b577d0da8
commit
3e4d63cc90
|
@ -9,7 +9,7 @@
|
|||
|
||||
#define LOG_CONF_FILE_NAME "log-file.conf"
|
||||
|
||||
#define LOG_LOGRATATE_FILE_NAME "/etc/logrotate.d/log-syslog"
|
||||
#define LOG_LOGROTATE_FILE_NAME "/etc/logrotate.d/log-syslog"
|
||||
|
||||
#define DEFAULT_LOG_FILE "/var/log/syslog-test"
|
||||
#define DEFAULT_LOG_DEL_OVER_DAYS (30 * 6)
|
||||
|
@ -50,7 +50,7 @@ static level_str_t g_level_array[] = {
|
|||
|
||||
#define MAX_LOG_LEVEL_VALUE (sizeof(g_level_array) / sizeof(level_str_t))
|
||||
|
||||
static int write_logratate_conf(const log_file_t *conf, const char *log_path)
|
||||
static int write_logrotate_conf(const log_file_t *conf, const char *log_path)
|
||||
{
|
||||
int ret = -1;
|
||||
FILE *fp = NULL;
|
||||
|
@ -72,7 +72,7 @@ static int write_logratate_conf(const log_file_t *conf, const char *log_path)
|
|||
}
|
||||
|
||||
|
||||
fp = fopen(LOG_LOGRATATE_FILE_NAME, "w");
|
||||
fp = fopen(LOG_LOGROTATE_FILE_NAME, "w");
|
||||
if (fp == NULL) {
|
||||
ULOG_ERR(g_log, "Opening logratate file:%s is failure:%s", LOG_CONF_FILE_NAME, strerror(errno));
|
||||
goto END;
|
||||
|
@ -117,7 +117,7 @@ static int conf_log_file(const log_file_t *conf)
|
|||
}
|
||||
|
||||
/********** logrotate **********/
|
||||
if (write_logratate_conf(conf, path) != 0) {
|
||||
if (write_logrotate_conf(conf, path) != 0) {
|
||||
ULOG_ERR(g_log, "Logratate configure which is written is failure");
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue