mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Don't print trace level logging in tests.
This commit is contained in:
parent
3f73dfa7f1
commit
83f7beacc5
|
@ -42,6 +42,10 @@ static const char *tox_log_level_name(TOX_LOG_LEVEL level)
|
|||
static void print_debug_log(Tox *m, TOX_LOG_LEVEL level, const char *path, uint32_t line, const char *func,
|
||||
const char *message, void *user_data)
|
||||
{
|
||||
if (level == TOX_LOG_LEVEL_TRACE) {
|
||||
return;
|
||||
}
|
||||
|
||||
uint32_t index = user_data ? *(uint32_t *)user_data : 0;
|
||||
const char *file = strrchr(path, '/');
|
||||
file = file ? file + 1 : path;
|
||||
|
|
Loading…
Reference in New Issue
Block a user