mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-20 21:02:26 +02:00
Add macro for special fine-grained logging
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include <QDebug>
|
||||
|
||||
#include "DllMacro.h"
|
||||
#include "config.h"
|
||||
|
||||
#define LOGDEBUG 1
|
||||
#define LOGINFO 2
|
||||
@@ -69,4 +70,12 @@ namespace Logger
|
||||
#define tSqlLog Logger::TSqlLog
|
||||
DLLEXPORT void tLogNotifyShutdown();
|
||||
|
||||
// Macro for messages that severely hurt performance but are helpful
|
||||
// in some cases for better debugging.
|
||||
#ifdef TOMAHAWK_FINEGRAINED_MESSAGES
|
||||
#define FINEGRAINED_MSG(a) tDebug( LOGVERBOSE ) << a ;
|
||||
#else
|
||||
#define FINEGRAINED_MSG(a)
|
||||
#endif
|
||||
|
||||
#endif // TOMAHAWK_LOGGER_H
|
||||
|
@@ -22,4 +22,6 @@
|
||||
#cmakedefine LIBLASTFM_FOUND
|
||||
#cmakedefine QCA2_FOUND
|
||||
|
||||
#cmakedefine TOMAHAWK_FINEGRAINED_MESSAGES
|
||||
|
||||
#endif // CONFIG_H_IN
|
||||
|
Reference in New Issue
Block a user