summaryrefslogtreecommitdiffhomepage
path: root/server/fsm.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-22 05:19:07 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-22 05:19:07 -0800
commit13e9aefa1d7ec92600d46a004d5f38a4ff95ac7e (patch)
treeb88dd27679b4a891bd6218498123811ab0d85596 /server/fsm.go
parenta5874d6912e2286fa5af5dc452e3d99ebc38c7a5 (diff)
add --log-json command line option
During development, it's easy to parse a plain format by human. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/fsm.go')
-rw-r--r--server/fsm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/fsm.go b/server/fsm.go
index 9dab59e2..62c2495b 100644
--- a/server/fsm.go
+++ b/server/fsm.go
@@ -96,7 +96,7 @@ func (fsm *FSM) StateChanged() chan int {
}
func (fsm *FSM) StateChange(nextState int) {
- log.Debugf("Peer (%v) state changed from %v to %v", fsm.peerConfig.NeighborAddress, nextState, fsm.state)
+ log.Debugf("Peer (%v) state changed from %v to %v", fsm.peerConfig.NeighborAddress, fsm.state, nextState)
fsm.state = nextState
}