From 80d6dff5631a75ceaa5d17de21fdc5c21e5cb080 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 19 Feb 2024 00:22:55 +0000 Subject: [PATCH] logging: move spammy logs to trace --- src/core/LockSurface.cpp | 2 +- src/core/hyprlock.cpp | 2 ++ src/renderer/Renderer.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/LockSurface.cpp b/src/core/LockSurface.cpp index 089ad63..0a3785b 100644 --- a/src/core/LockSurface.cpp +++ b/src/core/LockSurface.cpp @@ -124,7 +124,7 @@ static const wl_callback_listener callbackListener = { }; void CSessionLockSurface::render() { - Debug::log(LOG, "render lock"); + Debug::log(TRACE, "render lock"); const auto FEEDBACK = g_pRenderer->renderLock(*this); frameCallback = wl_surface_frame(surface); diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index 4de1d55..a99727a 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -328,6 +328,8 @@ void CHyprlock::unlockSession() { m_bTerminate = true; wl_display_roundtrip(m_sWaylandState.display); + + exit(0); } void CHyprlock::onLockLocked() { diff --git a/src/renderer/Renderer.cpp b/src/renderer/Renderer.cpp index c6a0cf2..86285af 100644 --- a/src/renderer/Renderer.cpp +++ b/src/renderer/Renderer.cpp @@ -155,7 +155,7 @@ CRenderer::SRenderFeedback CRenderer::renderLock(const CSessionLockSurface& surf frames++; - Debug::log(LOG, "frame {}", frames); + Debug::log(TRACE, "frame {}", frames); feedback.needsFrame = feedback.needsFrame || bga < 1.0; return feedback;