diff options
author | Antti Määttä <antti.maatta@qt.io> | 2023-03-24 15:01:27 +0200 |
---|---|---|
committer | Antti Määttä <antti.maatta@qt.io> | 2023-03-28 13:05:14 +0300 |
commit | ebdf20240cbe78746d21c6af7c267982bfea3cb0 (patch) | |
tree | 57d812f1df81b624a1f3fd2d9ce24ace59f8bf82 | |
parent | e9512c46da50e374c960135f1804cb3f234d923f (diff) |
CTF: Fix QTRACE_LOCATION warnings during compilation
When compiling with CTF tracing, QTRACE_LOCATION not set warnigs are
printed constantly. Fix this by changing the log to info and default
log message level to warning.
Pick-to: 6.5
Change-Id: Ib167ec1b41ff0134fa9b3eba09394bb0bef54379
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Antti Määttä <antti.maatta@qt.io>
-rw-r--r-- | src/plugins/tracing/qctflib.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/tracing/qctflib.cpp b/src/plugins/tracing/qctflib.cpp index e0f4db489a..c3fdeed660 100644 --- a/src/plugins/tracing/qctflib.cpp +++ b/src/plugins/tracing/qctflib.cpp @@ -19,7 +19,7 @@ QT_BEGIN_NAMESPACE using namespace Qt::StringLiterals; -Q_LOGGING_CATEGORY(lcDebugTrace, "qt.core.ctf"); +Q_LOGGING_CATEGORY(lcDebugTrace, "qt.core.ctf", QtWarningMsg) static const size_t packetHeaderSize = 24 + 6 * 8 + 4; static const size_t packetSize = 4096; @@ -56,7 +56,7 @@ QCtfLibImpl::QCtfLibImpl() { QString location = QString::fromUtf8(qgetenv("QTRACE_LOCATION")); if (location.isEmpty()) { - qCWarning (lcDebugTrace) << "QTRACE_LOCATION not set"; + qCInfo (lcDebugTrace) << "QTRACE_LOCATION not set"; return; } |