From 31ce2ea9f57322d526daf266c7fca4bd407297cb Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 11 Feb 2013 14:08:05 +0100 Subject: [PATCH] Be less verbose in log --- src/odhcp6c.c | 4 ++++ src/script.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/odhcp6c.c b/src/odhcp6c.c index f7ae2fb..b67ed11 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -183,6 +183,8 @@ int main(_unused int argc, char* const argv[]) dhcpv6_set_ia_na_mode(ia_na_mode); bound = false; + syslog(LOG_NOTICE, "(re)starting transaction on %s", ifname); + do_signal = 0; int res = dhcpv6_request(DHCPV6_MSG_SOLICIT); odhcp6c_signal_process(); @@ -203,6 +205,7 @@ int main(_unused int argc, char* const argv[]) script_call("informed"); bound = true; + syslog(LOG_NOTICE, "entering stateless-mode on %s", ifname); if (dhcpv6_poll_reconfigure() > 0) script_call("informed"); @@ -218,6 +221,7 @@ int main(_unused int argc, char* const argv[]) odhcp6c_signal_process(); script_call("bound"); bound = true; + syslog(LOG_NOTICE, "entering stateful-mode on %s", ifname); while (do_signal == 0 || do_signal == SIGUSR1) { // Renew Cycle diff --git a/src/script.c b/src/script.c index 43af988..205c581 100644 --- a/src/script.c +++ b/src/script.c @@ -164,7 +164,6 @@ static void entry_to_env(const char *name, const void *data, size_t len, bool ho void script_call(const char *status) { - syslog(LOG_WARNING, "State for %s changed to %s", argv[1], status); size_t dns_len, search_len, custom_len, sntp_ip_len, sntp_dns_len; size_t sip_ip_len, sip_fqdn_len; -- 2.39.2