opt: reduce debug log

This commit is contained in:
DreamMaoMao 2025-03-16 10:11:20 +08:00
parent af51e86b32
commit cc74565a9c
2 changed files with 2 additions and 2 deletions

View file

@ -4927,7 +4927,7 @@ void signalhandler(int signalnumber) {
}
// 打开日志文件
FILE *fp = fopen(filename, "a");
FILE *fp = fopen(filename, "w");
if (!fp) {
// 如果无法打开日志文件,则不处理
return;