Phase2
This commit is contained in:
@@ -22,7 +22,13 @@ func main() {
|
||||
|
||||
log = log.With("node_id", cfg.NodeID, "component", "node-agent")
|
||||
|
||||
if err := agent.New(cfg, log).Run(context.Background()); err != nil {
|
||||
a, err := agent.New(cfg, log)
|
||||
if err != nil {
|
||||
log.Error("agent init error", "error", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
if err := a.Run(context.Background()); err != nil {
|
||||
log.Error("agent exited with error", "error", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user