Skip to content

Commit

Permalink
reduce syslog spamming (#47)
Browse files Browse the repository at this point in the history
will look into why cluster stats don't have the right counter for flagged_lines (we should have alarms on that instead). This is to prevent disk usage alarms. 
NOT PASSING TESTS
  • Loading branch information
Yash Kumaraswamy authored and lyft-buildnotify committed Jan 4, 2017
1 parent 6d61625 commit 1480adf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sampling.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ sampling_result sampler_consider_counter(sampler_t* sampler, const char* name, v
if (bucket == NULL) {
// Only flag if its a new metric
if (_flag_incoming_metric(sampler)) {
stats_log("flagging incoming counter metric %s", name);
stats_debug_log("flagging incoming counter metric %s", name);
return SAMPLER_FLAGGED;
}
/* Intialize a new bucket */
Expand Down Expand Up @@ -334,7 +334,7 @@ sampling_result sampler_consider_timer(sampler_t* sampler, const char* name, val
if (bucket == NULL) {
// Only flag if its a new metric
if (_flag_incoming_metric(sampler)) {
stats_log("flagging incoming timer metric %s", name);
stats_debug_log("flagging incoming timer metric %s", name);
return SAMPLER_FLAGGED;
}
/* Intialize a new bucket */
Expand Down Expand Up @@ -441,7 +441,7 @@ sampling_result sampler_consider_gauge(sampler_t* sampler, const char* name, val
if (bucket == NULL) {
// Only flag if its a new metric
if (_flag_incoming_metric(sampler)) {
stats_log("flagging incoming gauge metric %s", name);
stats_debug_log("flagging incoming gauge metric %s", name);
return SAMPLER_FLAGGED;
}
/* Intialize a new bucket */
Expand Down

0 comments on commit 1480adf

Please sign in to comment.