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 /src/corelib/io/qloggingregistry.cpp | |
parent | 806545fcc8d6b3b96a5191a00a31e9a39837189c (diff) |
QLoggingRegistry: Disable internal tracking of source file names
Commit d78fb442d750b33afe2e41f31588ec94cf4023ad (5.4) did this for all
regular users of our macros, but obviously missed this manual override.
So apply here too.
Change-Id: I8c6a0ff3ec184205a544fffd16af7734fed2ebd1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qloggingregistry.cpp')
-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 |