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 { ...@@ -56,7 +56,6 @@ func Main(version string, cliCtx *cli.Context) error {
ctx, cancel := context.WithCancel(context.Background()) ctx, cancel := context.WithCancel(context.Background())
l.Info("Batch Submitter started")
pprofConfig := cfg.PprofConfig pprofConfig := cfg.PprofConfig
if pprofConfig.Enabled { if pprofConfig.Enabled {
l.Info("starting pprof", "addr", pprofConfig.ListenAddr, "port", pprofConfig.ListenPort) l.Info("starting pprof", "addr", pprofConfig.ListenAddr, "port", pprofConfig.ListenPort)
...@@ -90,6 +89,7 @@ func Main(version string, cliCtx *cli.Context) error { ...@@ -90,6 +89,7 @@ func Main(version string, cliCtx *cli.Context) error {
Namespace: "admin", Namespace: "admin",
Service: rpc.NewAdminAPI(batchSubmitter), Service: rpc.NewAdminAPI(batchSubmitter),
}) })
l.Info("Admin RPC enabled")
} }
if err := server.Start(); err != nil { if err := server.Start(); err != nil {
cancel() cancel()
......
...@@ -140,6 +140,9 @@ func (l *BatchSubmitter) Start() error { ...@@ -140,6 +140,9 @@ func (l *BatchSubmitter) Start() error {
l.wg.Add(1) l.wg.Add(1)
go l.loop() go l.loop()
l.log.Info("Batch Submitter started")
return nil return nil
} }
...@@ -155,6 +158,9 @@ func (l *BatchSubmitter) Stop() error { ...@@ -155,6 +158,9 @@ func (l *BatchSubmitter) Stop() error {
l.cancel() l.cancel()
close(l.done) close(l.done)
l.wg.Wait() l.wg.Wait()
l.log.Info("Batch Submitter stopped")
return nil return nil
} }
......
...@@ -215,6 +215,7 @@ func (n *OpNode) initRPCServer(ctx context.Context, cfg *Config) error { ...@@ -215,6 +215,7 @@ func (n *OpNode) initRPCServer(ctx context.Context, cfg *Config) error {
} }
if cfg.RPC.EnableAdmin { if cfg.RPC.EnableAdmin {
server.EnableAdminAPI(NewAdminAPI(n.l2Driver, n.metrics)) server.EnableAdminAPI(NewAdminAPI(n.l2Driver, n.metrics))
n.log.Info("Admin RPC enabled")
} }
n.log.Info("Starting JSON-RPC server") n.log.Info("Starting JSON-RPC server")
if err := server.Start(); err != nil { 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