diff options
author | dsp <dsp@2f30.org> | 2016-07-30 14:16:48 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-30 12:17:37 +0900 |
commit | c4fe45902e736a858c4870bcab01c9143551f696 (patch) | |
tree | cbc45786d584fd98c1fb55851f2200bea938c909 /server/fsm.go | |
parent | bb15c18402ffcb5beb60aa61cfdc57577633f234 (diff) |
all logging is done with log.WithFields
Signed-off-by: dsp <dsp@2f30.org>
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/fsm.go')
-rw-r--r-- | server/fsm.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/fsm.go b/server/fsm.go index babfde5e..780a2b32 100644 --- a/server/fsm.go +++ b/server/fsm.go @@ -436,7 +436,7 @@ func (h *FSMHandler) idle() (bgp.FSMState, FsmStateReason) { return bgp.BGP_FSM_ACTIVE, FSM_IDLE_HOLD_TIMER_EXPIRED } else { - log.Debug("IdleHoldTimer expired, but stay at idle because the admin state is DOWN") + log.WithFields(log.Fields{"Topic": "Peer"}).Debug("IdleHoldTimer expired, but stay at idle because the admin state is DOWN") } case s := <-fsm.adminStateCh: @@ -1263,7 +1263,7 @@ func (h *FSMHandler) loop() error { } e := time.AfterFunc(time.Second*120, func() { - log.Fatal("failed to free the fsm.h.t for ", fsm.pConf.Config.NeighborAddress, oldState, nextState) + log.WithFields(log.Fields{"Topic": "Peer"}).Fatalf("failed to free the fsm.h.t for %s %s %s", fsm.pConf.Config.NeighborAddress, oldState, nextState) }) h.t.Wait() e.Stop() |