Increased log level when listing interfaces and IP addresses during startup
authorTobias Brunner <tobias@strongswan.org>
Tue, 14 Aug 2012 15:21:55 +0000 (17:21 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 16 Aug 2012 14:14:15 +0000 (16:14 +0200)
This avoids confusing log messages in starter and ipsec statusall
already lists the available addresses anyway.

src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c
src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c

index fc59c8a..91d29eb 100644 (file)
@@ -1634,7 +1634,7 @@ static status_t init_address_list(private_kernel_netlink_net_t *this)
        iface_entry_t *iface;
        addr_entry_t *addr;
 
-       DBG1(DBG_KNL, "listening on interfaces:");
+       DBG2(DBG_KNL, "known interfaces and IP addresses:");
 
        memset(&request, 0, sizeof(request));
 
@@ -1698,11 +1698,11 @@ static status_t init_address_list(private_kernel_netlink_net_t *this)
        {
                if (iface->flags & IFF_UP)
                {
-                       DBG1(DBG_KNL, "  %s", iface->ifname);
+                       DBG2(DBG_KNL, "  %s", iface->ifname);
                        addrs = iface->addrs->create_enumerator(iface->addrs);
                        while (addrs->enumerate(addrs, (void**)&addr))
                        {
-                               DBG1(DBG_KNL, "    %H", addr->ip);
+                               DBG2(DBG_KNL, "    %H", addr->ip);
                        }
                        addrs->destroy(addrs);
                }
index 918fdd3..47e9b06 100644 (file)
@@ -561,7 +561,7 @@ static status_t init_address_list(private_kernel_pfroute_net_t *this)
        addr_entry_t *addr;
        enumerator_t *ifaces, *addrs;
 
-       DBG1(DBG_KNL, "listening on interfaces:");
+       DBG2(DBG_KNL, "known interfaces and IP addresses:");
 
        if (getifaddrs(&ifap) < 0)
        {
@@ -626,11 +626,11 @@ static status_t init_address_list(private_kernel_pfroute_net_t *this)
        {
                if (iface->flags & IFF_UP)
                {
-                       DBG1(DBG_KNL, "  %s", iface->ifname);
+                       DBG2(DBG_KNL, "  %s", iface->ifname);
                        addrs = iface->addrs->create_enumerator(iface->addrs);
                        while (addrs->enumerate(addrs, (void**)&addr))
                        {
-                               DBG1(DBG_KNL, "    %H", addr->ip);
+                               DBG2(DBG_KNL, "    %H", addr->ip);
                        }
                        addrs->destroy(addrs);
                }