From 4c5997bcbe4bfa38bebb8abe5c6a42edcc7a1e99 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 13 Jan 2021 14:25:25 -0800 Subject: mobile/cleanup: reduce the noise in our logs There are two sets of messages that tend to dominate the logs - the RSSI updates from the Qt BLE stack - the warnings about deprecated signal use in Kirigami Neither of them provide any value to us when trying to find bugs; and often they end up hiding the things that we really care about. So let's just not log them - which is easy as we have our own message handler. Signed-off-by: Dirk Hohndel --- qt-models/messagehandlermodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qt-models') diff --git a/qt-models/messagehandlermodel.cpp b/qt-models/messagehandlermodel.cpp index f0807cf80..cc3f9f12d 100644 --- a/qt-models/messagehandlermodel.cpp +++ b/qt-models/messagehandlermodel.cpp @@ -39,6 +39,10 @@ void MessageHandlerModel::addLog(QtMsgType type, const QString& message) if (lastMessage == newMessage) return; } + // filter extremely noisy and unhelpful messages + if (message.contains("Updating RSSI for") || (message.contains(QRegExp(".*kirigami.*onFoo properties in Connections")))) + return; + beginInsertRows(QModelIndex(), rowCount(), rowCount()); m_data.append({message, type}); endInsertRows(); -- cgit v1.2.3-70-g09d2