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

fix: logger issue #1858

Merged
merged 1 commit into from
Jan 15, 2025
Merged

fix: logger issue #1858

merged 1 commit into from
Jan 15, 2025

Conversation

vansangpfiev
Copy link
Contributor

@vansangpfiev vansangpfiev commented Jan 15, 2025

Describe Your Changes

This pull request includes a change to the FileLogger class to modify the file opening mode in the OpenFile method. The most important change is as follows:

  • engine/utils/file_logger.cc: Changed the file opening mode from "r+" (read/update) to "a+" (append/update) in the FileLogger::CircularLogFile::OpenFile method. This ensures that the file pointer is positioned at the end of the file for writing, and it creates the file if it does not exist.

Fixes Issues

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@vansangpfiev vansangpfiev merged commit 0707069 into dev Jan 15, 2025
6 checks passed
@vansangpfiev vansangpfiev deleted the fix/logger branch January 15, 2025 04:02
vansangpfiev added a commit that referenced this pull request Jan 16, 2025
Co-authored-by: vansangpfiev <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants