package main import ( "context" "os" "os/signal" "kapycluster.com/magicnode/log" "kapycluster.com/magicnode/node" ) func main() { ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt) defer stop() log.NewContext(ctx, "magicnode") err := node.Start(ctx) if err != nil { log.FromContext(ctx).Error("magicnode failed", "error", err) os.Exit(-1) } }