diff options
author | trinity-1686a <trinity@deuxfleurs.fr> | 2024-04-13 22:15:09 +0200 |
---|---|---|
committer | trinity-1686a <trinity@deuxfleurs.fr> | 2024-04-13 22:15:09 +0200 |
commit | e95375ec998ced79f7e726b3705a6f0fd5321d9a (patch) | |
tree | 1b38d65e3160659a5e580e53c82c9fd88a1350d0 | |
parent | 0bd1df58d0d6671bb0e386bcae2dd802b6eb7ef6 (diff) | |
download | tor-e95375ec998ced79f7e726b3705a6f0fd5321d9a.tar.gz tor-e95375ec998ced79f7e726b3705a6f0fd5321d9a.zip |
also consider LD_BUG logs when counting bug reached
-rw-r--r-- | src/lib/log/log.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/log/log.c b/src/lib/log/log.c index 7ee4ce86f9..aecd838c5d 100644 --- a/src/lib/log/log.c +++ b/src/lib/log/log.c @@ -707,6 +707,8 @@ log_fn_(int severity, log_domain_mask_t domain, const char *fn, const char *format, ...) { va_list ap; + if (domain & LD_BUG) + tor_bug_increment_count_(); if (severity > log_global_min_severity_) return; va_start(ap,format); @@ -719,6 +721,8 @@ log_fn_ratelim_(ratelim_t *ratelim, int severity, log_domain_mask_t domain, { va_list ap; char *m; + if (domain & LD_BUG) + tor_bug_increment_count_(); if (severity > log_global_min_severity_) return; m = rate_limit_log(ratelim, approx_time()); |