summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2015-01-29 11:48:29 +0100
committerKai Koehne <kai.koehne@theqtcompany.com>2015-02-02 13:32:40 +0000
commit92b238a41ef5d781ad4db722b6f69ec920864f69 (patch)
treeb44c72d8ef8afd00a6da56caf365fc62d694997a /src/libs
parent9ff9cedf37bfeb06aec8c1e0e9de531bb86dbb1b (diff)
Verbose output: Avoid '(:0)' in release build
Do not try to log file, line, function information if it's not available (release build). Change-Id: I1c3348503f08cc57427012ce985277d0e95924b1 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/installer/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/init.cpp b/src/libs/installer/init.cpp
index 5d9f8a162..0815038a7 100644
--- a/src/libs/installer/init.cpp
+++ b/src/libs/installer/init.cpp
@@ -175,7 +175,7 @@ void messageHandler(QtMsgType type, const QMessageLogContext &context, const QSt
QString ba = QLatin1Char('[') + QString::number(uptime.elapsed()) + QStringLiteral("] ")
+ trimAndPrepend(type, msg);
- if (type != QtDebugMsg) {
+ if (type != QtDebugMsg && context.file) {
ba += QString(QStringLiteral(" (%1:%2, %3)")).arg(
QString::fromLatin1(context.file)).arg(context.line).arg(
QString::fromLatin1(context.function));