Skip to content

Commit

Permalink
input_seqsrc: Increase required verbosity level for noisy printf's
Browse files Browse the repository at this point in the history
The "freeing old source", "initialized new seqsrc", and "resetting
source" debugging printf's generated by the seqsrc tracking code are
low-level, and noisy. They should require a higher verbosity level than
the debug message printed when a dropped container is detected.

Increase the required verbosity level for these messages from 5 to 6.
  • Loading branch information
Robert Edmonds committed Sep 26, 2014
1 parent 45259cc commit 9ef0460
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nmsg/input_seqsrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ _input_seqsrc_get(nmsg_input_t input, Nmsg__Nmsg *nmsg) {
}

if (seqsrc->last < input->stream->now.tv_sec - NMSG_SEQSRC_GC_INTERVAL) {
_nmsg_dprintf(5,
_nmsg_dprintf(6,
"%s: freeing old source id= " IDFMT ": "
"count= %" PRIu64 " count_dropped= %" PRIu64 "\n",
__func__, seqsrc->key.sequence_id,
Expand Down Expand Up @@ -213,7 +213,7 @@ _input_seqsrc_get(nmsg_input_t input, Nmsg__Nmsg *nmsg) {

ISC_LINK_INIT(seqsrc, link);
ISC_LIST_APPEND(input->stream->seqsrcs, seqsrc, link);
_nmsg_dprintf(5, "%s: initialized new seqsrc id= " IDFMT "\n",
_nmsg_dprintf(6, "%s: initialized new seqsrc id= " IDFMT "\n",
__func__, seqsrc->key.sequence_id);
} else {
if (seqsrc != ISC_LIST_HEAD(input->stream->seqsrcs)) {
Expand All @@ -230,7 +230,7 @@ _input_seqsrc_get(nmsg_input_t input, Nmsg__Nmsg *nmsg) {

static void
reset_seqsrc(struct nmsg_seqsrc *seqsrc, const char *why) {
_nmsg_dprintf(5,
_nmsg_dprintf(6,
"%s: resetting source id= " IDFMT ": %s: "
"count= %" PRIu64 " count_dropped= %" PRIu64 "\n",
__func__,
Expand Down

0 comments on commit 9ef0460

Please sign in to comment.