Skip to content

Commit

Permalink
fix: apply upstream LogLevel renaming
Browse files Browse the repository at this point in the history
Signed-off-by: Yiyang Wu <[email protected]>
  • Loading branch information
ToolmanP committed Dec 9, 2024
1 parent 07adcdc commit ff32c93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions src/VirtualDeskManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ff32c93

Please sign in to comment.