refactor: Change log level for active desktop query to debug

This commit is contained in:
Nick Bolton
2025-02-10 14:12:12 +00:00
parent e420b9b986
commit 524c3b0e7b

View File

@ -596,10 +596,9 @@ void MSWindowsWatchdog::getActiveDesktop(LPSECURITY_ATTRIBUTES security)
MSWindowsSession session;
std::string name = session.getActiveDesktopName();
if (name.empty()) {
LOG((CLOG_CRIT "failed to get active desktop name"));
LOG((CLOG_DEBUG "no active desktop in current session"));
} else {
std::string output = deskflow::string::sprintf("activeDesktop:%s", name.c_str());
LOG((CLOG_INFO "%s", output.c_str()));
LOG((CLOG_INFO "active desktop name: %s", name.c_str()));
}
}
}