From 5d7604cc217ac5310529794e441bdb7dc3ebd88b Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Wed, 6 Apr 2016 14:38:06 +0100 Subject: [PATCH] Print command line when launching the app. --- prog/app.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prog/app.go b/prog/app.go index 5669e9a04..9f347c9a9 100644 --- a/prog/app.go +++ b/prog/app.go @@ -7,6 +7,7 @@ import ( "net/http" _ "net/http/pprof" "net/url" + "os" "strconv" "strings" "time" @@ -171,6 +172,7 @@ func appMain() { app.UniqueID = strconv.FormatInt(rand.Int63(), 16) app.Version = version log.Infof("app starting, version %s, ID %s", app.Version, app.UniqueID) + log.Infof("command line: %v", os.Args) // Start background version checking checkpoint.CheckInterval(&checkpoint.CheckParams{