summaryrefslogtreecommitdiffhomepage
path: root/bgpd.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-22 04:58:46 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-22 04:58:46 -0800
commita5874d6912e2286fa5af5dc452e3d99ebc38c7a5 (patch)
tree77724caffc72447f6b4b0d89de643fa980bbfcfa /bgpd.go
parent6ecf5e15ceda5e8535727d16a3d04e35cb7f51d0 (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.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd.go b/bgpd.go
index 08edb960..38e5c849 100644
--- a/bgpd.go
+++ b/bgpd.go
@@ -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
}
}