Adding global state to iodine

master
Frederick F. Kautz IV 10 years ago
parent 0662f9e019
commit 337df7f7ec
  1. 8
      main.go

@ -19,9 +19,12 @@ package main
import ( import (
"os" "os"
"errors"
"github.com/minio-io/cli" "github.com/minio-io/cli"
"github.com/minio-io/iodine"
"github.com/minio-io/minio/pkg/server" "github.com/minio-io/minio/pkg/server"
"github.com/minio-io/minio/pkg/utils/log" "github.com/minio-io/minio/pkg/utils/log"
"time"
) )
// commitID is automatically set by git. Settings are controlled // commitID is automatically set by git. Settings are controlled
@ -119,6 +122,11 @@ func runCmd(c *cli.Context) {
} }
func main() { 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 := cli.NewApp()
app.Name = "minio" app.Name = "minio"
app.Version = commitID app.Version = commitID

Loading…
Cancel
Save