diff options
author | Ben Pfaff <blp@nicira.com> | 2012-04-30 13:01:43 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-04-30 13:02:00 -0700 |
commit | 56eb405ae4e84d095240f51ea7d93528b5c3a619 (patch) | |
tree | 706157f2c85c353a916b09c03ca5fb1339692322 /lib/cfm.c | |
parent | e09616c6c9d6d5f01e3400917b59764d263fea4a (diff) |
cfm: Avoid constructing log message that will be dropped by rate-limiting.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/cfm.c')
-rw-r--r-- | lib/cfm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -394,12 +394,12 @@ cfm_run(struct cfm *cfm) cfm->fault |= CFM_FAULT_RECV; } - if (old_cfm_fault != cfm->fault) { + if (old_cfm_fault != cfm->fault && !VLOG_DROP_INFO(&rl)) { struct ds ds = DS_EMPTY_INITIALIZER; ds_put_cfm_fault(&ds, old_cfm_fault, cfm->fault); - VLOG_INFO_RL(&rl, "%s: CFM fault status changed:%s", cfm->name, - ds_cstr_ro(&ds)); + VLOG_INFO("%s: CFM fault status changed:%s", cfm->name, + ds_cstr_ro(&ds)); ds_destroy(&ds); } |