summaryrefslogtreecommitdiff
path: root/src/managers/ANRManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/managers/ANRManager.cpp')
-rw-r--r--src/managers/ANRManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/managers/ANRManager.cpp b/src/managers/ANRManager.cpp
index db7a245f..a9cff74f 100644
--- a/src/managers/ANRManager.cpp
+++ b/src/managers/ANRManager.cpp
@@ -1,7 +1,7 @@
#include "ANRManager.hpp"
#include "../helpers/fs/FsUtils.hpp"
-#include "../debug/Log.hpp"
+#include "../debug/log/Logger.hpp"
#include "../macros.hpp"
#include "HookSystemManager.hpp"
#include "../Compositor.hpp"
@@ -17,7 +17,7 @@ static constexpr auto TIMER_TIMEOUT = std::chrono::milliseconds(1500);
CANRManager::CANRManager() {
if (!NFsUtils::executableExistsInPath("hyprland-dialog")) {
- Debug::log(ERR, "hyprland-dialog missing from PATH, cannot start ANRManager");
+ Log::logger->log(Log::ERR, "hyprland-dialog missing from PATH, cannot start ANRManager");
return;
}
@@ -206,7 +206,7 @@ void CANRManager::SANRData::runDialog(const std::string& appName, const std::str
dialogBox->open()->then([dialogWmPID, this, OPTION_TERMINATE_STR, OPTION_WAIT_STR](SP<CPromiseResult<std::string>> r) {
if (r->hasError()) {
- Debug::log(ERR, "CANRManager::SANRData::runDialog: error spawning dialog");
+ Log::logger->log(Log::ERR, "CANRManager::SANRData::runDialog: error spawning dialog");
return;
}
@@ -217,7 +217,7 @@ void CANRManager::SANRData::runDialog(const std::string& appName, const std::str
else if (result.starts_with(OPTION_WAIT_STR))
dialogSaidWait = true;
else
- Debug::log(ERR, "CANRManager::SANRData::runDialog: lambda: unrecognized result: {}", result);
+ Log::logger->log(Log::ERR, "CANRManager::SANRData::runDialog: lambda: unrecognized result: {}", result);
});
}