-
Notifications
You must be signed in to change notification settings - Fork 890
fix: Convert full source paths to relative in logs #8823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 4 commits
7bdb0d8
39daf3b
256430f
a3f761f
4a4a717
33b668f
1abd860
9213c25
4e439d7
37b0454
f53af9a
7f1661b
8a2d2d1
11c460a
66a7a08
007f778
17866f8
404a09e
29239db
2e87f45
80965f7
3bcaf69
8c3e417
724b668
0f358fe
28a0f89
8fde220
6d9409a
88a9d60
7af9c12
eec39be
80c6c90
974bd60
7b2c7fd
1a277c5
b94b47b
6844115
31fead1
4daa934
a0a740a
c629037
e6d4217
bdbe552
5e15ee1
1f50ffe
f801c96
30d4e42
767e3f4
50e53bc
186767a
081df19
bc24a9e
58aa1c6
1cf0194
b6a6094
9995628
4747b7f
1fc59e9
d9fc94d
6a0db5a
153c46c
db430b9
e4c8ba8
9fc0dc9
49f1cfc
b5ff078
ad82579
049ffc5
85c5e09
5b688de
5051b67
9813702
0ef6f57
e3ec58e
e43077e
cf44a78
32617f1
f7a62d1
d4c144a
1da2fcf
f7d06b8
7d9bb86
574e57c
7a4db91
2f685c4
08fe60d
2d1f52b
c6ecc77
7b4fe33
acee80a
a77107c
54a8f3a
8c05564
a1d2b8c
0eeff94
6712d31
dbde1f5
c15e464
587b531
93c1c84
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,8 +11,8 @@ | |||||
| #include <QDir> | ||||||
| #include <QRegularExpression> | ||||||
| #include <QStringList> | ||||||
| #include <QtGlobal> | ||||||
| #include <QTextCodec> | ||||||
| #include <QtGlobal> | ||||||
| #include <qmetaobject.h> | ||||||
|
|
||||||
| #include <iostream> | ||||||
|
|
@@ -61,7 +61,8 @@ static bool compressLog(const QString &originalName, const QString &targetName) | |||||
|
|
||||||
| } | ||||||
|
|
||||||
| namespace OCC { | ||||||
| namespace OCC | ||||||
| { | ||||||
|
||||||
|
|
||||||
| Q_LOGGING_CATEGORY(lcPermanentLog, "nextcloud.log.permanent") | ||||||
|
|
||||||
|
|
@@ -74,8 +75,7 @@ Logger *Logger::instance() | |||||
| Logger::Logger(QObject *parent) | ||||||
| : QObject(parent) | ||||||
| { | ||||||
| qSetMessagePattern(QStringLiteral("%{time yyyy-MM-dd hh:mm:ss:zzz} [ %{type} %{category} %{file}:%{line} " | ||||||
| "]%{if-debug}\t[ %{function} ]%{endif}:\t%{message}")); | ||||||
| qSetMessagePattern(QStringLiteral("%{time yyyy-MM-dd hh:mm:ss:zzz} [%{type} %{category}]:\t%{message}; %{function} %{if-debug}%{file}%{endif}:%{line}")); | ||||||
|
||||||
| _crashLog.resize(CrashLogSize); | ||||||
| #ifndef NO_MSG_HANDLER | ||||||
| s_originalMessageHandler = qInstallMessageHandler([](QtMsgType type, const QMessageLogContext &ctx, const QString &message) { | ||||||
|
|
@@ -94,7 +94,6 @@ Logger::~Logger() | |||||
| #endif | ||||||
| } | ||||||
|
|
||||||
|
|
||||||
| void Logger::postGuiLog(const QString &title, const QString &message) | ||||||
| { | ||||||
| emit guiLog(title, message); | ||||||
|
|
@@ -114,7 +113,8 @@ bool Logger::isLoggingToFile() const | |||||
| void Logger::doLog(QtMsgType type, const QMessageLogContext &ctx, const QString &message) | ||||||
| { | ||||||
| static long long int linesCounter = 0; | ||||||
| const auto &msg = qFormatLogMessage(type, ctx, message); | ||||||
| QString msg = qFormatLogMessage(type, ctx, message); | ||||||
|
||||||
| QString msg = qFormatLogMessage(type, ctx, message); | |
| const auto msg = qFormatLogMessage(type, ctx, message); |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment (code style)
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please split code style fixes into a separate commit
makes it easier to selectively revert or test changes while keeping code style improvements
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this change really needed ?