diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-02-25 13:55:25 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-02-25 13:55:25 +0900 |
commit | 5974937803899fa32763423c267a26b1be0cdcae (patch) | |
tree | d20cf4a391006ece0671671368713b9992e37436 | |
parent | 12af62f25e35a85db5c319ea518d947f3d2d1783 (diff) |
server: warning when sending notification message
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | server/fsm.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/fsm.go b/server/fsm.go index bac2a956..5c9a26c5 100644 --- a/server/fsm.go +++ b/server/fsm.go @@ -612,6 +612,12 @@ func (h *FSMHandler) sendMessageloop() error { fsm.bgpMessageStateUpdate(m.Header.Type, false) if m.Header.Type == bgp.BGP_MSG_NOTIFICATION { + log.WithFields(log.Fields{ + "Topic": "Peer", + "Key": fsm.peerConfig.NeighborAddress, + "Data": m, + }).Warn("sent notification") + h.errorCh <- true conn.Close() return nil |