diff options
Diffstat (limited to 'zencore')
| -rw-r--r-- | zencore/include/zencore/logging.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/include/zencore/logging.h b/zencore/include/zencore/logging.h index 44e3d40d4..5cbe034cf 100644 --- a/zencore/include/zencore/logging.h +++ b/zencore/include/zencore/logging.h @@ -67,6 +67,7 @@ LogIsErrorLevel(int level) using namespace std::literals; \ if (logger.should_log(level)) \ { \ + logger.log(loc, level, fmtstr, ##__VA_ARGS__); \ if (LogIsErrorLevel(level)) \ { \ if (auto ErrLogger = zen::logging::ErrorLog(); ErrLogger != nullptr) \ @@ -74,7 +75,6 @@ LogIsErrorLevel(int level) ErrLogger->log(loc, level, fmtstr, ##__VA_ARGS__); \ } \ } \ - logger.log(loc, level, fmtstr, ##__VA_ARGS__); \ } \ } while (false); |