mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(chat): Stop spellcheck from leaking messages to logs
This commit is contained in:
parent
ba17b5130c
commit
813643adbf
|
@ -92,8 +92,13 @@ void logMessageHandler(QtMsgType type, const QMessageLogContext& ctxt, const QSt
|
||||||
{
|
{
|
||||||
// Silence qWarning spam due to bug in QTextBrowser (trying to open a file for base64 images)
|
// Silence qWarning spam due to bug in QTextBrowser (trying to open a file for base64 images)
|
||||||
if (ctxt.function == QString("virtual bool QFSFileEngine::open(QIODevice::OpenMode)")
|
if (ctxt.function == QString("virtual bool QFSFileEngine::open(QIODevice::OpenMode)")
|
||||||
&& msg == QString("QFSFileEngine::open: No file name specified"))
|
&& msg == QString("QFSFileEngine::open: No file name specified")) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
if (msg.startsWith("Unable to find any suggestion for")) {
|
||||||
|
// Prevent sonnet's complaints from leaking user chat messages to logs
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (msg == QString("attempted to send message with network family 10 (probably IPv6) on IPv4 socket")) {
|
if (msg == QString("attempted to send message with network family 10 (probably IPv6) on IPv4 socket")) {
|
||||||
// non-stop c-toxcore spam for IPv4 users: https://github.com/TokTok/c-toxcore/issues/1432
|
// non-stop c-toxcore spam for IPv4 users: https://github.com/TokTok/c-toxcore/issues/1432
|
||||||
|
|
Loading…
Reference in New Issue
Block a user