Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename LogLevel enum #72

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading