forked from quickshell/quickshell
core/log: add read-log --no-time
This commit is contained in:
parent
c2b4610acb
commit
53b8f1ee0b
3 changed files with 7 additions and 4 deletions
|
@ -641,7 +641,7 @@ bool EncodedLogReader::registerCategory() {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool readEncodedLogs(QIODevice* device, const QString& rulespec) {
|
||||
bool readEncodedLogs(QIODevice* device, bool timestamps, const QString& rulespec) {
|
||||
using namespace qt_logging_registry;
|
||||
|
||||
QList<QLoggingRule> rules;
|
||||
|
@ -700,7 +700,7 @@ bool readEncodedLogs(QIODevice* device, const QString& rulespec) {
|
|||
}
|
||||
|
||||
if (filter.shouldDisplay(message.type)) {
|
||||
LogMessage::formatMessage(stream, message, color, true);
|
||||
LogMessage::formatMessage(stream, message, color, timestamps);
|
||||
stream << '\n';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue