diff --git a/src/core/logging.h b/src/core/logging.h index 6223b1fa9..80705cb04 100644 --- a/src/core/logging.h +++ b/src/core/logging.h @@ -20,8 +20,12 @@ #include -#define qLog(level) \ - logging::CreateLogger(logging::Level_##level, __PRETTY_FUNCTION__, __LINE__) +#ifdef QT_NO_DEBUG_STREAM +# define qLog(level) while (false) QNoDebug() +#else +# define qLog(level) \ + logging::CreateLogger(logging::Level_##level, __PRETTY_FUNCTION__, __LINE__) +#endif namespace logging { class NullDevice : public QIODevice {