diff options
author | vaxerski <[email protected]> | 2022-08-26 18:02:07 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-08-26 18:02:10 +0200 |
commit | dbd774fedb21fa55a23a741cc0ecaf1be556e6aa (patch) | |
tree | eb30b532862831d14b14c4cfb3c09e04edae1eda /src/debug/Log.cpp | |
parent | bf00bf796399a7819b1b5302705ffde2b8e8d5a2 (diff) | |
download | Hyprland-dbd774fedb21fa55a23a741cc0ecaf1be556e6aa.tar.gz Hyprland-dbd774fedb21fa55a23a741cc0ecaf1be556e6aa.zip |
simplify a bit of code
Diffstat (limited to 'src/debug/Log.cpp')
-rw-r--r-- | src/debug/Log.cpp | 5 |
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) { |