1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(logging): only log toxcore messages above TRACE level

This commit is contained in:
sudden6 2018-07-08 14:19:17 +02:00
parent 8317f2473f
commit 7a98ea2def
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -47,6 +47,7 @@ void ToxLogger::onLogMessage(Tox *tox, TOX_LOG_LEVEL level, const char *file, ui
switch (level) {
case TOX_LOG_LEVEL_TRACE:
return; // trace level generates too much noise to enable by default
case TOX_LOG_LEVEL_DEBUG:
case TOX_LOG_LEVEL_INFO:
qDebug() << logMsg;