diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-01-05 11:02:58 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-01-05 11:02:58 +0000 |
commit | 4d94d7ee0f61110f0ae5f075b2e3443e6a8be9f1 (patch) | |
tree | 40e22a095ae8be022995a7f6c2be799921389c23 /usr.sbin/bgpd | |
parent | 39f4555786d5f259dd8e084f1e7d6e56172daf9f (diff) |
Improve rtr_send_error() logging and demote the FSM state changes from
log_info to log_debug.
OK tb@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/rtr_proto.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/rtr_proto.c b/usr.sbin/bgpd/rtr_proto.c index c529be5f876..78df9e0b26d 100644 --- a/usr.sbin/bgpd/rtr_proto.c +++ b/usr.sbin/bgpd/rtr_proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtr_proto.c,v 1.22 2024/01/04 14:30:09 claudio Exp $ */ +/* $OpenBSD: rtr_proto.c,v 1.23 2024/01/05 11:02:57 claudio Exp $ */ /* * Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org> @@ -299,8 +299,8 @@ rtr_send_error(struct rtr_session *rs, enum rtr_error err, char *msg, goto fail; ibuf_close(&rs->w, buf); - log_warnx("rtr %s: sending error report[%u] %s", log_rtr(rs), err, - msg ? msg : ""); + log_warnx("rtr %s: sending error: %s%s%s", log_rtr(rs), + log_rtr_error(err), msg ? ": " : "", msg ? msg : ""); rtr_fsm(rs, RTR_EVNT_SEND_ERROR); return; @@ -1096,7 +1096,7 @@ rtr_fsm(struct rtr_session *rs, enum rtr_event event) break; } - log_info("rtr %s: state change %s -> %s, reason: %s", + log_debug("rtr %s: state change %s -> %s, reason: %s", log_rtr(rs), rtr_statenames[prev_state], rtr_statenames[rs->state], rtr_eventnames[event]); } |