aboutsummaryrefslogtreecommitdiff
path: root/src/common/logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/logger.cpp')
-rw-r--r--src/common/logger.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/logger.cpp b/src/common/logger.cpp
index 11446f24..25223d91 100644
--- a/src/common/logger.cpp
+++ b/src/common/logger.cpp
@@ -49,6 +49,11 @@ std::wstring_view LogLevelToString(LogLevel level) {
} // namespace
void Logger::Log(LogLevel level, const std::wstring_view &s) {
+#ifndef CRU_DEBUG
+ if (level == LogLevel::Debug) {
+ return;
+ }
+#endif
for (const auto source : sources_) {
auto now = std::time(nullptr);
wchar_t buffer[50];