summaryrefslogtreecommitdiff
path: root/src/debug/Log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/Log.cpp')
-rw-r--r--src/debug/Log.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp
index 67c160bc..403098e4 100644
--- a/src/debug/Log.cpp
+++ b/src/debug/Log.cpp
@@ -6,10 +6,7 @@
#include <iostream>
void Debug::init(std::string IS) {
- if (ISDEBUG)
- logFile = "/tmp/hypr/" + IS + "/hyprlandd.log";
- else
- logFile = "/tmp/hypr/" + IS + "/hyprland.log";
+ logFile = "/tmp/hypr/" + IS + (ISDEBUG ? "/hyprlandd.log" : "/hyprland.log");
}
void Debug::wlrLog(wlr_log_importance level, const char* fmt, va_list args) {