From 83f7beacc575f4a24ebbfeaeed3bd9e38fcef041 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 18 Feb 2018 14:09:42 +0000 Subject: [PATCH] Don't print trace level logging in tests. --- auto_tests/helpers.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/auto_tests/helpers.h b/auto_tests/helpers.h index 0c88f4a1..de106340 100644 --- a/auto_tests/helpers.h +++ b/auto_tests/helpers.h @@ -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;