From 3ed8dc37884bac67414c0840e27b5094a69cfdcd Mon Sep 17 00:00:00 2001 From: Luka Modric Date: Thu, 27 Sep 2018 13:09:22 +0200 Subject: 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 Reviewed-by: Shawn Rutledge --- src/corelib/global/qlogging.cpp | 4 +--- 1 file changed, 1 insertion(+), 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 } -- cgit v1.2.3