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/bmp.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/bmp.go')
-rw-r--r-- | server/bmp.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/bmp.go b/server/bmp.go index 084066ab..3522da98 100644 --- a/server/bmp.go +++ b/server/bmp.go @@ -30,7 +30,7 @@ import ( func (b *bmpClient) tryConnect() *net.TCPConn { interval := 1 for { - log.Debug("connecting bmp server: ", b.host) + log.WithFields(log.Fields{"Topic": "bmp"}).Debugf("Connecting BMP server:%s", b.host) conn, err := net.Dial("tcp", b.host) if err != nil { select { @@ -43,7 +43,7 @@ func (b *bmpClient) tryConnect() *net.TCPConn { interval *= 2 } } else { - log.Info("bmp server is connected, ", b.host) + log.WithFields(log.Fields{"Topic": "bmp"}).Infof("BMP server is connected:%s", b.host) return conn.(*net.TCPConn) } } |