diff options
Diffstat (limited to 'isisd/isis_events.c')
-rw-r--r-- | isisd/isis_events.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/isisd/isis_events.c b/isisd/isis_events.c index d54036a5..a8e60d6d 100644 --- a/isisd/isis_events.c +++ b/isisd/isis_events.c @@ -283,8 +283,9 @@ isis_event_adjacency_state_change (struct isis_adjacency *adj, int newstate) if (!adj || !adj->circuit || !adj->circuit->area) return; - zlog_debug ("ISIS-Evt (%s) Adjacency State change", - adj->circuit->area->area_tag); + if (isis->debugs & DEBUG_EVENTS) + zlog_debug ("ISIS-Evt (%s) Adjacency State change", + adj->circuit->area->area_tag); /* LSP generation again */ lsp_regenerate_schedule (adj->circuit->area); @@ -304,8 +305,8 @@ isis_event_dis_status_change (struct thread *thread) /* invalid arguments */ if (!circuit || !circuit->area) return 0; - - zlog_debug ("ISIS-Evt (%s) DIS status change", circuit->area->area_tag); + if (isis->debugs & DEBUG_EVENTS) + zlog_debug ("ISIS-Evt (%s) DIS status change", circuit->area->area_tag); /* LSP generation again */ lsp_regenerate_schedule (circuit->area); @@ -316,8 +317,9 @@ isis_event_dis_status_change (struct thread *thread) void isis_event_auth_failure (char *area_tag, const char *error_string, u_char *sysid) { - zlog_debug ("ISIS-Evt (%s) Authentication failure %s from %s", - area_tag, error_string, sysid_print (sysid)); + if (isis->debugs & DEBUG_EVENTS) + zlog_debug ("ISIS-Evt (%s) Authentication failure %s from %s", + area_tag, error_string, sysid_print (sysid)); return; } |