[ovs-dev] [tests 03/22] bond: Reduce log level from WARN to INFO for interface status updates.

Ben Pfaff blp at nicira.com
Fri Oct 26 00:01:59 UTC 2012


An interface coming up or going down isn't a big deal.

Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 lib/bond.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/bond.c b/lib/bond.c
index 25a0fa1..0f91413 100644
--- a/lib/bond.c
+++ b/lib/bond.c
@@ -1296,12 +1296,12 @@ bond_enable_slave(struct bond_slave *slave, bool enable, struct tag_set *tags)
     if (enable != slave->enabled) {
         slave->enabled = enable;
         if (!slave->enabled) {
-            VLOG_WARN("interface %s: disabled", slave->name);
+            VLOG_INFO("interface %s: disabled", slave->name);
             if (tags) {
                 tag_set_add(tags, slave->tag);
             }
         } else {
-            VLOG_WARN("interface %s: enabled", slave->name);
+            VLOG_INFO("interface %s: enabled", slave->name);
             slave->tag = tag_create_random();
         }
 
@@ -1506,7 +1506,7 @@ bond_choose_active_slave(struct bond *bond, struct tag_set *tags)
 
         bond->send_learning_packets = true;
     } else if (old_active_slave) {
-        VLOG_WARN_RL(&rl, "bond %s: all interfaces disabled", bond->name);
+        VLOG_INFO_RL(&rl, "bond %s: all interfaces disabled", bond->name);
     }
 }
 
-- 
1.7.2.5




More information about the dev mailing list