check: include missing virtual server group name in a log message
authorVincent Bernat <bernat@luffy.cx>
Wed, 25 Aug 2010 13:16:15 +0000 (13:16 +0000)
committerAlexandre Cassen <acassen@lnxos-dev.(none)>
Wed, 8 Dec 2010 10:56:50 +0000 (11:56 +0100)
keepalived/check/ipwrapper.c

index 222d7a1..0a58443 100644 (file)
@@ -659,7 +659,7 @@ clear_diff_rs(virtual_server * old_vs)
                        log_message(LOG_INFO, "Removing service [%s:%d] from VS [%s:%d]"
                               , inet_ntoa2(SVR_IP(rs), rsip)
                               , ntohs(SVR_PORT(rs))
-                              , inet_ntoa2(SVR_IP(old_vs), vsip)
+                              , (old_vs->vsgname) ? old_vs->vsgname : inet_ntoa2(SVR_IP(old_vs), vsip)
                               , ntohs(SVR_PORT(old_vs)));
                        rs->inhibit = 0;
                        if (!ipvs_cmd(LVS_CMD_DEL_DEST, check_data->vs_group, old_vs, rs))