mirror of
https://github.com/minio/minio.git
synced 2025-02-03 18:06:00 -05:00
Merge pull request #371 from fkautz/pr_out_adding_global_state_to_iodine
This commit is contained in:
commit
63194c321d
8
main.go
8
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user