summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-12-18 17:23:24 +0000
committerGitHub <noreply@github.com>2025-12-18 17:23:24 +0000
commit6175ecd4c4ba817c4620f66a75e1e11da7c7a8ca (patch)
treecf73852f1fc08b1dcee5a3a7380f914aaad9c50a /src/main.cpp
parentf88deb928a0f7dc02f427473f8c29e8f2bed14a3 (diff)
debug: move to hyprutils' logger (#12673)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 49d44a09..a499bd48 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,9 +1,10 @@
#include "defines.hpp"
-#include "debug/Log.hpp"
+#include "debug/log/Logger.hpp"
#include "Compositor.hpp"
#include "config/ConfigManager.hpp"
#include "init/initHelpers.hpp"
#include "debug/HyprCtl.hpp"
+#include "helpers/env/Env.hpp"
#include <csignal>
#include <cstdio>
@@ -132,7 +133,7 @@ int main(int argc, char** argv) {
return 1;
}
- Debug::log(LOG, "User-specified config location: '{}'", configPath);
+ Log::logger->log(Log::DEBUG, "User-specified config location: '{}'", configPath);
it++;
@@ -219,17 +220,17 @@ int main(int argc, char** argv) {
g_pCompositor->m_safeMode = true;
if (!watchdogOk)
- Debug::log(WARN, "WARNING: Hyprland is being launched without start-hyprland. This is highly advised against.");
+ Log::logger->log(Log::WARN, "WARNING: Hyprland is being launched without start-hyprland. This is highly advised against.");
g_pCompositor->initServer(socketName, socketFd);
if (verifyConfig)
return !g_pConfigManager->m_lastConfigVerificationWasSuccessful;
- if (!envEnabled("HYPRLAND_NO_RT"))
+ if (!Env::envEnabled("HYPRLAND_NO_RT"))
NInit::gainRealTime();
- Debug::log(LOG, "Hyprland init finished.");
+ Log::logger->log(Log::DEBUG, "Hyprland init finished.");
// If all's good to go, start.
g_pCompositor->startCompositor();
@@ -238,7 +239,7 @@ int main(int argc, char** argv) {
g_pCompositor.reset();
- Debug::log(LOG, "Hyprland has reached the end.");
+ Log::logger->log(Log::DEBUG, "Hyprland has reached the end.");
return EXIT_SUCCESS;
}