modify syslog compressor log level and errcode

This commit is contained in:
dimstars
2024-06-17 19:41:57 +00:00
committed by ob-robot
parent c5eb9389d6
commit c7e77a8144

View File

@ -426,8 +426,8 @@ int ObLogCompressor::compress_single_file_(const char *file_name, char *src_buf,
ret = OB_ERR_UNEXPECTED; ret = OB_ERR_UNEXPECTED;
LOG_ERROR("failed to get compressed file name", K(ret), K(file_name)); LOG_ERROR("failed to get compressed file name", K(ret), K(file_name));
} else if (NULL == (input_file = fopen(file_name, "r"))) { } else if (NULL == (input_file = fopen(file_name, "r"))) {
ret = OB_ERR_SYS; ret = OB_FILE_NOT_EXIST;
LOG_ERROR("failed to open file", K(ret), K(errno), K(file_name)); LOG_WARN("failed to open file", K(ret), K(errno), K(file_name));
} else if (NULL == (output_file = fopen(compressed_file_name, "w"))) { } else if (NULL == (output_file = fopen(compressed_file_name, "w"))) {
ret = OB_ERR_SYS; ret = OB_ERR_SYS;
fclose(input_file); fclose(input_file);