Skip to content

Commit

Permalink
Merge pull request #71 from ToolmanP/dev
Browse files Browse the repository at this point in the history
fix: apply upstream LogLevel renaming
  • Loading branch information
levnikmyskin authored Dec 9, 2024
2 parents 07adcdc + ff32c93 commit db7b1fe
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 db7b1fe

Please sign in to comment.