From 337df7f7ec63bd0eac02067afb26ee9f69ff20a5 Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Wed, 25 Mar 2015 11:44:43 -0700 Subject: [PATCH] Adding global state to iodine --- main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.go b/main.go index e86c9850e..d1b0ec99f 100644 --- a/main.go +++ b/main.go @@ -19,9 +19,12 @@ package main import ( "os" + "errors" "github.com/minio-io/cli" + "github.com/minio-io/iodine" "github.com/minio-io/minio/pkg/server" "github.com/minio-io/minio/pkg/utils/log" + "time" ) // commitID is automatically set by git. Settings are controlled @@ -119,6 +122,11 @@ func runCmd(c *cli.Context) { } func main() { + // set up iodine + iodine.SetGlobalState("minio.git", commitID) + iodine.SetGlobalState("minio.starttime", time.Now().Format(time.RFC3339)) + + // set up app app := cli.NewApp() app.Name = "minio" app.Version = commitID