From 07ea4de248c779ccdd26921cb57a1362bedafbac Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Thu, 10 Jul 2025 03:50:11 -0700 Subject: [PATCH] io/ipchandler: add registry logs --- src/io/ipchandler.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/io/ipchandler.cpp b/src/io/ipchandler.cpp index 517e4505..5ffa0ad4 100644 --- a/src/io/ipchandler.cpp +++ b/src/io/ipchandler.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include @@ -14,10 +15,15 @@ #include #include "../core/generation.hpp" +#include "../core/logcat.hpp" #include "ipc.hpp" namespace qs::io::ipc { +namespace { +QS_LOGGING_CATEGORY(logIpcHandler, "quickshell.ipchandler", QtWarningMsg) +} + bool IpcFunction::resolve(QString& error) { if (this->method.parameterCount() > 10) { error = "Due to technical limitations, IPC functions can only have 10 arguments."; @@ -210,6 +216,7 @@ IpcHandlerRegistry* IpcHandlerRegistry::forGeneration(EngineGeneration* generati if (!ext) { ext = new IpcHandlerRegistry(); generation->registerExtension(&key, ext); + qCDebug(logIpcHandler) << "Created new IPC handler registry" << ext << "for" << generation; } return dynamic_cast(ext); @@ -232,10 +239,12 @@ void IpcHandler::updateRegistration(bool destroying) { if (this->registeredState.enabled) { registry->deregisterHandler(this); + qCDebug(logIpcHandler) << "Deregistered" << this << "from registry" << registry; } if (this->targetState.enabled && !this->targetState.target.isEmpty()) { registry->registerHandler(this); + qCDebug(logIpcHandler) << "Registered" << this << "to registry" << registry; } }