From c89c05dd04d097bd8213125a42d67204bb681de5 Mon Sep 17 00:00:00 2001 From: hasso Date: Sun, 4 Sep 2005 21:36:36 +0000 Subject: * *.c: Try to be less verbose by default (without any debug options on). * isis_lsp.c (lsp_build_nonpseudo): Use stream_reset() instead of touching endp directly. * isis_lsp.c (lsp_build_pseudo): Ditto. --- isisd/isis_events.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'isisd/isis_events.c') 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; } -- cgit v1.2.1