Skip to content

Commit

Permalink
remove verbose log lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash committed Jan 26, 2016
1 parent e8e3ad7 commit 52e7334
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,7 @@ static void flush_cluster_stats(struct ev_loop *loop, struct ev_timer *watcher,
memcpy(line_buffer, head, len);
memcpy(line_buffer + len, "\n\0", 2);

if (stats_relay_line(line_buffer, len, server, true) != 0) {
stats_log("Flush failed on %.*s, skipping!\n", len, line_buffer);
}
stats_relay_line(line_buffer, len, server, true);
buffer_consume(server->health_buffer, len + 1);
}

Expand Down Expand Up @@ -516,7 +514,7 @@ void stats_server_reload(stats_server_t *server) {
void *stats_connection(int sd, void *ctx) {
stats_session_t *session;

stats_log("stats: accepted client connection on fd %d", sd);
stats_debug_log("stats: accepted client connection on fd %d", sd);
session = (stats_session_t *) malloc(sizeof(stats_session_t));
if (session == NULL) {
stats_log("stats: Unable to allocate memory");
Expand Down Expand Up @@ -607,10 +605,6 @@ static int stats_relay_line(const char *line, size_t len, stats_server_t *ss, bo
send_len += group->prefix_len + group->suffix_len;
}

/**
* TODO: debug line, nuke post happy release
*/
stats_log("%s", linebuf);
if (tcpclient_sendall(&backend->client, linebuf, send_len + 1) != 0) {
backend->dropped_lines++;
if (backend->failing == 0) {
Expand Down

0 comments on commit 52e7334

Please sign in to comment.