1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Don't log state changes if nothing user-visible has changed.

This commit is contained in:
Martin Mares
2000-05-16 13:43:26 +00:00
parent f990fc61e0
commit df9f0fb30a
3 changed files with 12 additions and 5 deletions

View File

@@ -59,7 +59,17 @@ proto_relink(struct proto *p)
{
list *l;
PD(p, "State changed to %s", proto_state_name(p));
if (p->debug & D_STATES)
{
char *name = proto_state_name(p);
if (name != p->last_state_name_announced)
{
p->last_state_name_announced = name;
PD(p, "State changed to %s", proto_state_name(p));
}
}
else
p->last_state_name_announced = NULL;
rem_node(&p->n);
switch (p->core_state)
{