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:
parent
8317f2473f
commit
7a98ea2def
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user