From 598bd3d7d8f11a51cc6a0100cac6452dd072b3cf Mon Sep 17 00:00:00 2001 From: TCH Date: Mon, 25 Aug 2025 14:20:29 +0200 Subject: [PATCH] linux: update logging tag (#194) change linux logs name to librepods --- linux/logger.h | 10 +++++----- linux/main.cpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/linux/logger.h b/linux/logger.h index dddb9d5..440ce31 100644 --- a/linux/logger.h +++ b/linux/logger.h @@ -3,9 +3,9 @@ #include #include -Q_DECLARE_LOGGING_CATEGORY(airpodsApp) +Q_DECLARE_LOGGING_CATEGORY(Librepods) -#define LOG_INFO(msg) qCInfo(airpodsApp) << "\033[32m" << msg << "\033[0m" -#define LOG_WARN(msg) qCWarning(airpodsApp) << "\033[33m" << msg << "\033[0m" -#define LOG_ERROR(msg) qCCritical(airpodsApp) << "\033[31m" << msg << "\033[0m" -#define LOG_DEBUG(msg) qCDebug(airpodsApp) << "\033[34m" << msg << "\033[0m" +#define LOG_INFO(msg) qCInfo(Librepods) << "\033[32m" << msg << "\033[0m" +#define LOG_WARN(msg) qCWarning(Librepods) << "\033[33m" << msg << "\033[0m" +#define LOG_ERROR(msg) qCCritical(Librepods) << "\033[31m" << msg << "\033[0m" +#define LOG_DEBUG(msg) qCDebug(Librepods) << "\033[34m" << msg << "\033[0m" diff --git a/linux/main.cpp b/linux/main.cpp index be9a8dc..8bcfe42 100644 --- a/linux/main.cpp +++ b/linux/main.cpp @@ -28,7 +28,7 @@ using namespace AirpodsTrayApp::Enums; -Q_LOGGING_CATEGORY(airpodsApp, "airpodsApp") +Q_LOGGING_CATEGORY(Librepods, "Librepods") class AirPodsTrayApp : public QObject { Q_OBJECT @@ -48,7 +48,7 @@ public: , m_deviceInfo(new DeviceInfo(this)), m_bleManager(new BleManager(this)) , m_systemSleepMonitor(new SystemSleepMonitor(this)) { - QLoggingCategory::setFilterRules(QString("airpodsApp.debug=%1").arg(debugMode ? "true" : "false")); + QLoggingCategory::setFilterRules(QString("Librepods.debug=%1").arg(debugMode ? "true" : "false")); LOG_INFO("Initializing AirPodsTrayApp"); // Initialize tray icon and connect signals