Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 0707069

Browse files
fix: logger issue (#1858)
Co-authored-by: vansangpfiev <[email protected]>
1 parent bd9271c commit 0707069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/utils/file_logger.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ void FileLogger::CircularLogFile::TruncateFileIfNeeded() {
117117
void FileLogger::CircularLogFile::OpenFile() {
118118
#ifdef _WIN32
119119
auto wFileName = utils::toNativePath(file_name_);
120-
fp_ = _wfopen(wFileName.c_str(), L"r+");
120+
fp_ = _wfopen(wFileName.c_str(), L"a+");
121121
#else
122-
fp_ = fopen(file_name_.c_str(), "r+");
122+
fp_ = fopen(file_name_.c_str(), "a+");
123123
#endif
124124

125125
if (!fp_) {

0 commit comments

Comments
 (0)