summaryrefslogtreecommitdiff
path: root/src/common/logging/backend.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-22 17:21:59 -0700
committerGitHub <noreply@github.com>2021-06-22 17:21:59 -0700
commit0308a2679ed87aa9cb07e2bde19e165dc454c322 (patch)
treea1d29aacabab533673bff8043ec11864d68ed022 /src/common/logging/backend.cpp
parent255f8d22d7cbb85b6d7742d46a1a6c55262ad4e1 (diff)
parent2fa207058ba6cb1c4d519942e5543bd942f03f6c (diff)
Merge pull request #6493 from Morph1984/fs-nodiscard
common: fs: Miscellaneous changes
Diffstat (limited to 'src/common/logging/backend.cpp')
-rw-r--r--src/common/logging/backend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index d5cff400f..47ce06478 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -159,7 +159,7 @@ FileBackend::FileBackend(const std::filesystem::path& filename) {
// Existence checks are done within the functions themselves.
// We don't particularly care if these succeed or not.
- void(FS::RemoveFile(old_filename));
+ FS::RemoveFile(old_filename);
void(FS::RenameFile(filename, old_filename));
file =
@@ -186,7 +186,7 @@ void FileBackend::Write(const Entry& entry) {
bytes_written += file->WriteString(FormatLogMessage(entry).append(1, '\n'));
if (entry.log_level >= Level::Error) {
- void(file->Flush());
+ file->Flush();
}
}