Reduce log spam.
This commit is contained in:
@ -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);
|
log_error("%s: (%s) write failed: %d", client_config.interface);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
log_line("%s: Sent to ifchd: '%s'", client_config.interface, buf);
|
|
||||||
char data[256], control[256];
|
char data[256], control[256];
|
||||||
struct iovec iov = {
|
struct iovec iov = {
|
||||||
.iov_base = data,
|
.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_DOMAIN);
|
||||||
bo += send_cmd(buf + bo, sizeof buf - bo, packet, DCODE_MTU);
|
bo += send_cmd(buf + bo, sizeof buf - bo, packet, DCODE_MTU);
|
||||||
bo += send_cmd(buf + bo, sizeof buf - bo, packet, DCODE_WINS);
|
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);
|
ret = ifchwrite(buf, bo);
|
||||||
|
}
|
||||||
|
|
||||||
if (ret >= 0) {
|
if (ret >= 0) {
|
||||||
cs->ifDeconfig = 0;
|
cs->ifDeconfig = 0;
|
||||||
|
@ -233,8 +233,6 @@ int execute_buffer(const char newbuf[static 1])
|
|||||||
client_config.interface);
|
client_config.interface);
|
||||||
return -99;
|
return -99;
|
||||||
}
|
}
|
||||||
log_line("%s: Commands received and successfully executed.",
|
|
||||||
client_config.interface);
|
|
||||||
return !cmdf ? 0 : -1;
|
return !cmdf ? 0 : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user