Don't print trace level logging in tests.

This commit is contained in:
iphydf 2018-02-18 14:09:42 +00:00
parent 3f73dfa7f1
commit 83f7beacc5
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -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, 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) const char *message, void *user_data)
{ {
if (level == TOX_LOG_LEVEL_TRACE) {
return;
}
uint32_t index = user_data ? *(uint32_t *)user_data : 0; uint32_t index = user_data ? *(uint32_t *)user_data : 0;
const char *file = strrchr(path, '/'); const char *file = strrchr(path, '/');
file = file ? file + 1 : path; file = file ? file + 1 : path;