Browse Source

[core] clear shared log buffer after writes

avoid repeating error trace when all fdlog_t are periodically flushed
Glenn Strauss 2 months ago
parent
commit
e4ef55b261
  1. 2
      src/log.c

2
src/log.c

@ -269,6 +269,7 @@ log_error_va_list_impl (const log_error_st *errh,
log_error_write(errh, b);
buffer_clear(b);
errno = errnum;
}
@ -332,6 +333,7 @@ log_error_multiline (log_error_st *errh,
log_error_write(errh, b);
}
buffer_clear(b);
errno = errnum;
}

Loading…
Cancel
Save