diff --git a/src/libsync/logger.cpp b/src/libsync/logger.cpp index 8aa0360c2..5e956fbab 100644 --- a/src/libsync/logger.cpp +++ b/src/libsync/logger.cpp @@ -46,7 +46,8 @@ Logger *Logger::instance() Logger::Logger(QObject *parent) : QObject(parent) { - qSetMessagePattern(QStringLiteral("%{time yyyy-MM-dd hh:mm:ss:zzz} [ %{type} %{category} ]%{if-debug}\t[ %{function} ]%{endif}:\t%{message}")); + qSetMessagePattern(QStringLiteral("%{time yyyy-MM-dd hh:mm:ss:zzz} [ %{type} %{category} %{file}:%{line} " + "]%{if-debug}\t[ %{function} ]%{endif}:\t%{message}")); _crashLog.resize(CrashLogSize); #ifndef NO_MSG_HANDLER qInstallMessageHandler([](QtMsgType type, const QMessageLogContext &ctx, const QString &message) {