diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-22 04:58:46 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-22 04:58:46 -0800 |
commit | a5874d6912e2286fa5af5dc452e3d99ebc38c7a5 (patch) | |
tree | 77724caffc72447f6b4b0d89de643fa980bbfcfa /bgpd.go | |
parent | 6ecf5e15ceda5e8535727d16a3d04e35cb7f51d0 (diff) |
server: use logger instead of stdout
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'bgpd.go')
-rw-r--r-- | bgpd.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -16,7 +16,6 @@ package main import ( - "fmt" log "github.com/Sirupsen/logrus" "github.com/jessevdk/go-flags" "github.com/osrg/gobgp/api" @@ -88,15 +87,17 @@ func main() { } for _, p := range added { + log.Infof("Peer %v is added", p.NeighborAddress) bgpServer.PeerAdd(p) } for _, p := range deleted { + log.Infof("Peer %v is deleted", p.NeighborAddress) bgpServer.PeerDelete(p) } case sig := <-sigCh: switch sig { case syscall.SIGHUP: - fmt.Println("relaod the config file") + log.Info("relaod the config file") reloadCh <- true } } |