From 13d6d9c528e646f788d8874a46d603a3405b265e Mon Sep 17 00:00:00 2001 From: MakMuftic Date: Wed, 29 May 2024 14:36:07 +0200 Subject: [PATCH] add log with args --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 725c6b2..bf5bcb9 100644 --- a/main.go +++ b/main.go @@ -7,6 +7,7 @@ import ( "net/http" "os" "os/signal" + "strings" "sync" "syscall" "time" @@ -45,6 +46,8 @@ func main() { c, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) defer stop() + fmt.Println(strings.Join(os.Args, ",")) + app := &cli.App{ Name: "rpc-gateway", Usage: "The failover proxy for node providers.",