summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuka Modric <modricl@gmail.com>2018-09-27 13:09:22 +0200
committerAndré Klitzing <aklitzing@gmail.com>2018-09-27 17:15:17 +0000
commit3ed8dc37884bac67414c0840e27b5094a69cfdcd (patch)
tree8a051721c629345280cef6ad3995f41f19f55e26
parent857a0d4c51095e2f90274ab8246bb01e58c97dfc (diff)
Android: fix log output pattern
Remove hardcoded android log pattern as this is already part of the message to match behavior on other platforms. Task-number: QTBUG-69450 Change-Id: I529b550114a2164beafe305f8392891c4ead88f0 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
-rw-r--r--src/corelib/global/qlogging.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp
index 7444145e82..563e658c65 100644
--- a/src/corelib/global/qlogging.cpp
+++ b/src/corelib/global/qlogging.cpp
@@ -1666,9 +1666,7 @@ static bool android_default_message_handler(QtMsgType type,
case QtFatalMsg: priority = ANDROID_LOG_FATAL; break;
};
- __android_log_print(priority, qPrintable(QCoreApplication::applicationName()),
- "%s:%d (%s): %s\n", context.file, context.line,
- context.function, qPrintable(formattedMessage));
+ __android_log_print(priority, qPrintable(QCoreApplication::applicationName()), "%s\n", qPrintable(formattedMessage));
return true; // Prevent further output to stderr
}