]> git.decadent.org.uk Git - odhcp6c.git/commitdiff
Be less verbose in log
authorSteven Barth <steven@midlink.org>
Mon, 11 Feb 2013 13:08:05 +0000 (14:08 +0100)
committerSteven Barth <steven@midlink.org>
Mon, 11 Feb 2013 13:08:05 +0000 (14:08 +0100)
src/odhcp6c.c
src/script.c

index f7ae2fb917e73b8d3be1d3dd6d810386dd3440d3..b67ed11843b25cda7e13e7e6727a404f94fa0c0d 100644 (file)
@@ -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
index 43af9884c9e0999f2fec22a9e34246ffc2dd35e1..205c581520c3e1e70920cda18506eabed49c9da2 100644 (file)
@@ -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;