diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2021-10-19 08:10:59 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2021-10-27 12:40:33 -0700 |
commit | 0f6453703c4b7b51c3bbc94983426082c9b72f6a (patch) | |
tree | 9c83bad407d06082d90356b724880f28d4470f9d | |
parent | 806545fcc8d6b3b96a5191a00a31e9a39837189c (diff) |
-rw-r--r-- | src/corelib/io/qloggingregistry.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/corelib/io/qloggingregistry.cpp b/src/corelib/io/qloggingregistry.cpp index 1c26e3d1c1..03c0a538a6 100644 --- a/src/corelib/io/qloggingregistry.cpp +++ b/src/corelib/io/qloggingregistry.cpp @@ -55,9 +55,8 @@ // We can't use the default macros because this would lead to recursion. // Instead let's define our own one that unconditionally logs... -#define debugMsg QMessageLogger(__FILE__, __LINE__, __FUNCTION__, "qt.core.logging").debug -#define warnMsg QMessageLogger(__FILE__, __LINE__, __FUNCTION__, "qt.core.logging").warning - +#define debugMsg QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC, "qt.core.logging").debug +#define warnMsg QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC, "qt.core.logging").warning QT_BEGIN_NAMESPACE |