Skip to content

Commit

Permalink
Merge pull request #39 from davidvossel/log_tag_fix
Browse files Browse the repository at this point in the history
LOG: Invoke custom log filter function if tag changes
  • Loading branch information
asalkeld committed Jul 19, 2012
2 parents 2ada241 + d5b762e commit 11b20e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/log.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 11b20e1

Please sign in to comment.