From 658d2954b8cbdc0902a647d6df937c037d430e34 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Sun, 15 Feb 2015 02:58:51 -0500 Subject: [PATCH] Reduce log spam. --- src/ifchange.c | 5 +++-- src/ifchd-parse.rl | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ifchange.c b/src/ifchange.c index e110e13..6166344 100644 --- a/src/ifchange.c +++ b/src/ifchange.c @@ -199,7 +199,6 @@ static int ifchwrite(const char buf[static 1], size_t count) log_error("%s: (%s) write failed: %d", client_config.interface); return -1; } - log_line("%s: Sent to ifchd: '%s'", client_config.interface, buf); char data[256], control[256]; struct iovec iov = { .iov_base = data, @@ -345,8 +344,10 @@ int ifchange_bind(struct client_state_t cs[static 1], bo += send_cmd(buf + bo, sizeof buf - bo, packet, DCODE_DOMAIN); bo += send_cmd(buf + bo, sizeof buf - bo, packet, DCODE_MTU); bo += send_cmd(buf + bo, sizeof buf - bo, packet, DCODE_WINS); - if (bo) + if (bo) { + log_line("%s: bind command: '%s'", client_config.interface, buf); ret = ifchwrite(buf, bo); + } if (ret >= 0) { cs->ifDeconfig = 0; diff --git a/src/ifchd-parse.rl b/src/ifchd-parse.rl index 7212a7a..ee99a27 100644 --- a/src/ifchd-parse.rl +++ b/src/ifchd-parse.rl @@ -233,8 +233,6 @@ int execute_buffer(const char newbuf[static 1]) client_config.interface); return -99; } - log_line("%s: Commands received and successfully executed.", - client_config.interface); return !cmdf ? 0 : -1; }