diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2015-08-02 18:55:31 +0200 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2015-08-02 18:55:31 +0200 |
commit | 9ff23da2550dd159d81933c0236529ececc526b5 (patch) | |
tree | a0d000b990dd935986bd41437e51f01b97a086bd /src/common/logging/backend.cpp | |
parent | Merge pull request #999 from LittleWhite-tb/qt-save-location (diff) | |
download | yuzu-9ff23da2550dd159d81933c0236529ececc526b5.tar yuzu-9ff23da2550dd159d81933c0236529ececc526b5.tar.gz yuzu-9ff23da2550dd159d81933c0236529ececc526b5.tar.bz2 yuzu-9ff23da2550dd159d81933c0236529ececc526b5.tar.lz yuzu-9ff23da2550dd159d81933c0236529ececc526b5.tar.xz yuzu-9ff23da2550dd159d81933c0236529ececc526b5.tar.zst yuzu-9ff23da2550dd159d81933c0236529ececc526b5.zip |
Diffstat (limited to 'src/common/logging/backend.cpp')
-rw-r--r-- | src/common/logging/backend.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index d85e58373..68580e1c0 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp @@ -6,6 +6,7 @@ #include <array> #include <cstdio> +#include "common/assert.h" #include "common/common_funcs.h" // snprintf compatibility define #include "common/logging/backend.h" #include "common/logging/filter.h" @@ -78,8 +79,10 @@ const char* GetLevelName(Level log_level) { LVL(Warning); LVL(Error); LVL(Critical); + case Level::Count: + ASSERT_MSG(false, "invalid log level"); + return "Unknown"; } - return "Unknown"; #undef LVL } |