diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-15 08:43:48 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-19 06:21:59 +0000 |
commit | 00039df8275b0af2f4be9be3844ec6d130fe0add (patch) | |
tree | 9a15b679c4fe9df86e35b7d931c36079d512999d | |
parent | a68b5f3cd362b29ec2311e169d524f1388ffd1d4 (diff) |
fsm: improve log message when prefix-limit reached
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r-- | server/fsm.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/fsm.go b/server/fsm.go index 209cb2d2..5d42cdd1 100644 --- a/server/fsm.go +++ b/server/fsm.go @@ -1277,13 +1277,18 @@ func (h *FSMHandler) changeAdminState(s AdminState) error { "Key": fsm.pConf.Config.NeighborAddress, "State": fsm.state, }).Info("Administrative start") - - case ADMIN_STATE_DOWN, ADMIN_STATE_PFX_CT: + case ADMIN_STATE_DOWN: log.WithFields(log.Fields{ "Topic": "Peer", "Key": fsm.pConf.Config.NeighborAddress, "State": fsm.state, }).Info("Administrative shutdown") + case ADMIN_STATE_PFX_CT: + log.WithFields(log.Fields{ + "Topic": "Peer", + "Key": fsm.pConf.Config.NeighborAddress, + "State": fsm.state, + }).Info("Administrative shutdown(Prefix limit reached)") } } else { |