先把日志文件置空,在取

This commit is contained in:
13038267101 2023-05-18 14:39:08 +08:00
parent 1b80a8226c
commit 9854225786
1 changed files with 1 additions and 1 deletions

View File

@ -1719,7 +1719,7 @@ int hg_scanner_239::get_device_log(string &logpath)
return ret;
ofstream f;
f.open(save_path,ios::out | ios::app);
f.open(save_path,ios::out | ios::trunc);
if (!f.is_open())
return SCANNER_ERR_CREATE_FILE_FAILED;