diff options
author | Felix Weilbach <felix.weilbach@nextcloud.com> | 2021-10-18 15:52:21 +0300 |
---|---|---|
committer | Felix Weilbach (Rebase PR Action) <felix.weilbach@t-online.de> | 2021-10-19 20:10:44 +0300 |
commit | 1156d82594a4a692f0c16c433a6c2b4bc065d6c2 (patch) | |
tree | 8b84bf06fed4536967d0251b592f44918d879ee3 | |
parent | 6b32d9a694a06ea86a06f370829d8b1c4ca87848 (diff) |
Log file name and line number
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
-rw-r--r-- | src/libsync/logger.cpp | 3 |
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) { |