diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/fs/file.h | 4 | ||||
| -rw-r--r-- | src/common/logging/backend.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/fs/file.h b/src/common/fs/file.h index 0f10b6003..087b2993a 100644 --- a/src/common/fs/file.h +++ b/src/common/fs/file.h | |||
| @@ -394,11 +394,11 @@ public: | |||
| 394 | [[nodiscard]] size_t WriteString(std::span<const char> string) const; | 394 | [[nodiscard]] size_t WriteString(std::span<const char> string) const; |
| 395 | 395 | ||
| 396 | /** | 396 | /** |
| 397 | * Flushes any unwritten buffered data into the file. | 397 | * Attempts to flush any unwritten buffered data into the file and flush the file into the disk. |
| 398 | * | 398 | * |
| 399 | * @returns True if the flush was successful, false otherwise. | 399 | * @returns True if the flush was successful, false otherwise. |
| 400 | */ | 400 | */ |
| 401 | [[nodiscard]] bool Flush() const; | 401 | bool Flush() const; |
| 402 | 402 | ||
| 403 | /** | 403 | /** |
| 404 | * Resizes the file to a given size. | 404 | * Resizes the file to a given size. |
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index 47dba48ca..47ce06478 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp | |||
| @@ -186,7 +186,7 @@ void FileBackend::Write(const Entry& entry) { | |||
| 186 | 186 | ||
| 187 | bytes_written += file->WriteString(FormatLogMessage(entry).append(1, '\n')); | 187 | bytes_written += file->WriteString(FormatLogMessage(entry).append(1, '\n')); |
| 188 | if (entry.log_level >= Level::Error) { | 188 | if (entry.log_level >= Level::Error) { |
| 189 | void(file->Flush()); | 189 | file->Flush(); |
| 190 | } | 190 | } |
| 191 | } | 191 | } |
| 192 | 192 | ||