Fixes #41104
Signed-off-by: David Goulet <dgoulet@torproject.org>
--- /dev/null
+ o Minor bugfixes (logging, metrics port):
+ - Count BUG statements for the MetricsPort only if they are warnings or
+ errors. Fixes bug 41104; bugfix on 0.4.7.1.
const char *format, ...)
{
va_list ap;
- if (domain & LD_BUG)
+ if ((domain & LD_BUG) && (severity >= LOG_WARN))
tor_bug_increment_count_();
if (severity > log_global_min_severity_)
return;
{
va_list ap;
char *m;
- if (domain & LD_BUG)
+ if ((domain & LD_BUG) && (severity >= LOG_WARN))
tor_bug_increment_count_();
if (severity > log_global_min_severity_)
return;