LOG: Invoke custom log filter function if tag changes

This commit is contained in:
David Vossel 2012-07-19 17:18:46 -05:00
parent 2ada241eee
commit d5b762e441

View File

@ -287,6 +287,11 @@ qb_log_callsite_get(const char *function,
_custom_filter_fn(cs);
}
pthread_rwlock_unlock(&_listlock);
} else if (cs->tags != tags) {
cs->tags = tags;
if (_custom_filter_fn) {
_custom_filter_fn(cs);
}
}
return cs;
}