File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33#include <QDebug>
44#include <QLoggingCategory>
55
6- Q_DECLARE_LOGGING_CATEGORY (airpodsApp )
6+ Q_DECLARE_LOGGING_CATEGORY (Librepods )
77
8- #define LOG_INFO (msg ) qCInfo(airpodsApp ) << "\033[32m" << msg << "\033[0m"
9- #define LOG_WARN (msg ) qCWarning(airpodsApp ) << "\033[33m" << msg << "\033[0m"
10- #define LOG_ERROR (msg ) qCCritical(airpodsApp ) << "\033[31m" << msg << "\033[0m"
11- #define LOG_DEBUG (msg ) qCDebug(airpodsApp ) << "\033[34m" << msg << "\033[0m"
8+ #define LOG_INFO (msg ) qCInfo(Librepods ) << "\033[32m" << msg << "\033[0m"
9+ #define LOG_WARN (msg ) qCWarning(Librepods ) << "\033[33m" << msg << "\033[0m"
10+ #define LOG_ERROR (msg ) qCCritical(Librepods ) << "\033[31m" << msg << "\033[0m"
11+ #define LOG_DEBUG (msg ) qCDebug(Librepods ) << "\033[34m" << msg << "\033[0m"
Original file line number Diff line number Diff line change 2828
2929using namespace AirpodsTrayApp ::Enums;
3030
31- Q_LOGGING_CATEGORY (airpodsApp , " airpodsApp " )
31+ Q_LOGGING_CATEGORY (Librepods , " Librepods " )
3232
3333class AirPodsTrayApp : public QObject {
3434 Q_OBJECT
@@ -48,7 +48,7 @@ class AirPodsTrayApp : public QObject {
4848 , m_deviceInfo (new DeviceInfo (this )), m_bleManager (new BleManager (this ))
4949 , m_systemSleepMonitor (new SystemSleepMonitor (this ))
5050 {
51- QLoggingCategory::setFilterRules (QString (" airpodsApp .debug=%1" ).arg (debugMode ? " true" : " false" ));
51+ QLoggingCategory::setFilterRules (QString (" Librepods .debug=%1" ).arg (debugMode ? " true" : " false" ));
5252 LOG_INFO (" Initializing AirPodsTrayApp" );
5353
5454 // Initialize tray icon and connect signals
You can’t perform that action at this time.
0 commit comments