summaryrefslogtreecommitdiffstats
path: root/src/common/logging/backend.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-23 02:21:59 +0200
committerGitHub <noreply@github.com>2021-06-23 02:21:59 +0200
commit0308a2679ed87aa9cb07e2bde19e165dc454c322 (patch)
treea1d29aacabab533673bff8043ec11864d68ed022 /src/common/logging/backend.cpp
parentMerge pull request #6472 from Morph1984/spl (diff)
parentcommon: fs: Add a description of a regular file in IsFile (diff)
downloadyuzu-0308a2679ed87aa9cb07e2bde19e165dc454c322.tar
yuzu-0308a2679ed87aa9cb07e2bde19e165dc454c322.tar.gz
yuzu-0308a2679ed87aa9cb07e2bde19e165dc454c322.tar.bz2
yuzu-0308a2679ed87aa9cb07e2bde19e165dc454c322.tar.lz
yuzu-0308a2679ed87aa9cb07e2bde19e165dc454c322.tar.xz
yuzu-0308a2679ed87aa9cb07e2bde19e165dc454c322.tar.zst
yuzu-0308a2679ed87aa9cb07e2bde19e165dc454c322.zip
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();
}
}