Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Weilbach <felix.weilbach@nextcloud.com>2021-10-18 15:52:21 +0300
committerFelix Weilbach (Rebase PR Action) <felix.weilbach@t-online.de>2021-10-19 20:10:44 +0300
commit1156d82594a4a692f0c16c433a6c2b4bc065d6c2 (patch)
tree8b84bf06fed4536967d0251b592f44918d879ee3
parent6b32d9a694a06ea86a06f370829d8b1c4ca87848 (diff)
Log file name and line number
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
-rw-r--r--src/libsync/logger.cpp3
1 files changed, 2 insertions, 1 deletions
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) {