From 3a2c8018aef34a3e8b6f5e950d90446dd75b0942 Mon Sep 17 00:00:00 2001 From: WhySoBad <49595640+WhySoBad@users.noreply.github.com> Date: Mon, 9 Dec 2024 12:34:21 +0100 Subject: [PATCH] fix: rename LogLevel to eLogLevel --- include/utils.hpp | 2 +- src/VirtualDeskManager.cpp | 6 +++--- src/utils.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/utils.hpp b/include/utils.hpp index 61b9d30..689920b 100644 --- a/include/utils.hpp +++ b/include/utils.hpp @@ -53,7 +53,7 @@ enum RememberLayoutConf { RememberLayoutConf layoutConfFromInt(const int64_t); RememberLayoutConf layoutConfFromString(const std::string& conf); -void printLog(std::string s, LogLevel level = INFO); +void printLog(std::string s, eLogLevel level = INFO); std::string parseMoveDispatch(std::string& arg); bool extractBool(std::string& arg); diff --git a/src/VirtualDeskManager.cpp b/src/VirtualDeskManager.cpp index fee9b26..ccef35b 100644 --- a/src/VirtualDeskManager.cpp +++ b/src/VirtualDeskManager.cpp @@ -116,7 +116,7 @@ int VirtualDeskManager::moveToDesk(std::string& arg, int vdeskId) { PHLWINDOW window = g_pCompositor->getWindowByRegex(arg); if (!window) { - printLog(std::format("Window {} does not exist???", arg), LogLevel::ERR); + printLog(std::format("Window {} does not exist???", arg), eLogLevel::ERR); return vdeskId; } @@ -230,12 +230,12 @@ void VirtualDeskManager::resetVdesk(const std::string& arg) { } catch (std::exception const& ex) { vdeskId = getDeskIdFromName(arg, false); } if (vdeskId == -1) { - printLog("Reset vdesk: " + arg + " not found", LogLevel::WARN); + printLog("Reset vdesk: " + arg + " not found", eLogLevel::WARN); return; } if (!vdesksMap.contains(vdeskId)) { - printLog("Reset vdesk: " + arg + " not found in map. This should not happen :O", LogLevel::ERR); + printLog("Reset vdesk: " + arg + " not found in map. This should not happen :O", eLogLevel::ERR); return; } diff --git a/src/utils.cpp b/src/utils.cpp index 6b211e2..44c727e 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -1,6 +1,6 @@ #include "utils.hpp" -void printLog(std::string s, LogLevel level) { +void printLog(std::string s, eLogLevel level) { // #ifdef DEBUG // std::cout << "[virtual-desktops] " + s << std::endl; // #endif