summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-06 14:45:11 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-06 14:45:11 +0900
commit51a2201e14226571fa98af1f1cff6aa8840fea28 (patch)
tree759c1e199182f06874dad7c5f5a68d52f555fd42
parent00860b2676d760ce06c2ff2f3d926fa80eee7a10 (diff)
add log messages at bootup
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--config/serve.go3
-rw-r--r--gobgpd/main.go2
2 files changed, 5 insertions, 0 deletions
diff --git a/config/serve.go b/config/serve.go
index d1f88788..896d154b 100644
--- a/config/serve.go
+++ b/config/serve.go
@@ -34,6 +34,9 @@ func ReadConfigfileServe(path string, configCh chan BgpConfigSet, reloadCh chan
continue
}
}
+ if cnt == 0 {
+ log.Info("finished reading the config file")
+ }
cnt++
bgpConfig := BgpConfigSet{Bgp: b, Policy: p}
configCh <- bgpConfig
diff --git a/gobgpd/main.go b/gobgpd/main.go
index 15c5e940..03912546 100644
--- a/gobgpd/main.go
+++ b/gobgpd/main.go
@@ -140,6 +140,8 @@ func main() {
log.SetFormatter(&log.JSONFormatter{})
}
+ log.Info("gobgpd started")
+
if opts.ConfigFile == "" {
opts.ConfigFile = "gobgpd.conf"
}