Skip to content

Commit

Permalink
perf: Don't log verbose toxav messages.
Browse files Browse the repository at this point in the history
Some of these are extremely noisy. Probably we should distinguish
toxcore and toxav categories into tox.core and tox.av, but right now
that's not doable without hard-coding all the toxav filenames.
  • Loading branch information
iphydf committed Dec 22, 2024
1 parent 38431ab commit 349b610
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/appmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ void logMessageHandler(QtMsgType type, const QMessageLogContext& ctxt, const QSt
const QString file = canonicalLogFilePath(ctxt.file);
const QString category =
ctxt.category ? QString::fromUtf8(ctxt.category) : QStringLiteral("default");
if ((type == QtDebugMsg && category == QStringLiteral("tox.core")
&& (file == QStringLiteral("rtp.c") || file == QStringLiteral("video.c")))
|| (file == QStringLiteral("bwcontroller.c") && msg.contains("update"))) {
// Don't log verbose toxav messages.
return;
}

// Time should be in UTC to save user privacy on log sharing
QTime time = QDateTime::currentDateTime().toUTC().time();
Expand Down

0 comments on commit 349b610

Please sign in to comment.