aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/debug/Log.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-26 18:02:07 +0200
committervaxerski <[email protected]>2022-08-26 18:02:10 +0200
commitdbd774fedb21fa55a23a741cc0ecaf1be556e6aa (patch)
treeeb30b532862831d14b14c4cfb3c09e04edae1eda /src/debug/Log.cpp
parentbf00bf796399a7819b1b5302705ffde2b8e8d5a2 (diff)
downloadHyprland-dbd774fedb21fa55a23a741cc0ecaf1be556e6aa.tar.gz
Hyprland-dbd774fedb21fa55a23a741cc0ecaf1be556e6aa.zip
simplify a bit of code
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) {