equal
deleted
inserted
replaced
53 /* This Macro must be defined only one time*/ |
53 /* This Macro must be defined only one time*/ |
54 #define DEFINE_GLOBAL_DEBUG_VAR bool QCM5_DEBUG_ENABLED; |
54 #define DEFINE_GLOBAL_DEBUG_VAR bool QCM5_DEBUG_ENABLED; |
55 |
55 |
56 /* Define Macros for debugging */ |
56 /* Define Macros for debugging */ |
57 #define QCM5_DEBUG if (QCM5_DEBUG_ENABLED) qDebug() |
57 #define QCM5_DEBUG if (QCM5_DEBUG_ENABLED) qDebug() |
58 #define QCM5_DEBUG_ARG(x) if (QCM5_DEBUG_ENABLED) qDebug() << x; |
|
59 |
58 |
60 /* Check env var and switch on/off debugging */ |
59 /* Check env var and switch on/off debugging */ |
61 static inline void initDebugLogger(){ |
60 static inline void initDebugLogger(){ |
62 QCM5_DEBUG_ENABLED = !qgetenv("QCONTACT_MAEMO5_DEBUG").isEmpty(); |
61 QCM5_DEBUG_ENABLED = !qgetenv("QCONTACT_MAEMO5_DEBUG").isEmpty(); |
63 QCM5_DEBUG << "Logging has been enabled"; |
62 QCM5_DEBUG << "Logging has been enabled"; |