Commit 93691cc0 authored by Michael de Hoog's avatar Michael de Hoog

Logging fixes

parent 1271d834
......@@ -56,7 +56,6 @@ func Main(version string, cliCtx *cli.Context) error {
ctx, cancel := context.WithCancel(context.Background())
l.Info("Batch Submitter started")
pprofConfig := cfg.PprofConfig
if pprofConfig.Enabled {
l.Info("starting pprof", "addr", pprofConfig.ListenAddr, "port", pprofConfig.ListenPort)
......@@ -90,6 +89,7 @@ func Main(version string, cliCtx *cli.Context) error {
Namespace: "admin",
Service: rpc.NewAdminAPI(batchSubmitter),
})
l.Info("Admin RPC enabled")
}
if err := server.Start(); err != nil {
cancel()
......
......@@ -140,6 +140,9 @@ func (l *BatchSubmitter) Start() error {
l.wg.Add(1)
go l.loop()
l.log.Info("Batch Submitter started")
return nil
}
......@@ -155,6 +158,9 @@ func (l *BatchSubmitter) Stop() error {
l.cancel()
close(l.done)
l.wg.Wait()
l.log.Info("Batch Submitter stopped")
return nil
}
......
......@@ -215,6 +215,7 @@ func (n *OpNode) initRPCServer(ctx context.Context, cfg *Config) error {
}
if cfg.RPC.EnableAdmin {
server.EnableAdminAPI(NewAdminAPI(n.l2Driver, n.metrics))
n.log.Info("Admin RPC enabled")
}
n.log.Info("Starting JSON-RPC server")
if err := server.Start(); err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment