先把日志文件置空,在取
This commit is contained in:
parent
1b80a8226c
commit
9854225786
|
@ -1719,7 +1719,7 @@ int hg_scanner_239::get_device_log(string &logpath)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ofstream f;
|
ofstream f;
|
||||||
f.open(save_path,ios::out | ios::app);
|
f.open(save_path,ios::out | ios::trunc);
|
||||||
if (!f.is_open())
|
if (!f.is_open())
|
||||||
return SCANNER_ERR_CREATE_FILE_FAILED;
|
return SCANNER_ERR_CREATE_FILE_FAILED;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue