projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.curoverse.com:arvados into 11876-r-sdk
[arvados.git]
/
services
/
health
/
main.go
diff --git
a/services/health/main.go
b/services/health/main.go
index 4b553659ed4c467b9f87c7713237789e6fb3046c..496fb884d433a5eea350d27818d5e72629e9242f 100644
(file)
--- a/
services/health/main.go
+++ b/
services/health/main.go
@@
-4,7
+4,6
@@
import (
"flag"
"fmt"
"net/http"
"flag"
"fmt"
"net/http"
- "os"
"git.curoverse.com/arvados.git/sdk/go/arvados"
"git.curoverse.com/arvados.git/sdk/go/health"
"git.curoverse.com/arvados.git/sdk/go/arvados"
"git.curoverse.com/arvados.git/sdk/go/health"
@@
-21,14
+20,14
@@
func main() {
// Print version information if requested
if *getVersion {
// Print version information if requested
if *getVersion {
- fmt.Printf("
Version:
%s\n", version)
- os.Exit(0)
+ fmt.Printf("
arvados-health
%s\n", version)
+ return
}
log.SetFormatter(&log.JSONFormatter{
TimestampFormat: "2006-01-02T15:04:05.000000000Z07:00",
})
}
log.SetFormatter(&log.JSONFormatter{
TimestampFormat: "2006-01-02T15:04:05.000000000Z07:00",
})
- log.Printf("arvados
health %q
started", version)
+ log.Printf("arvados
-health %s
started", version)
cfg, err := arvados.GetConfig(*configFile)
if err != nil {
cfg, err := arvados.GetConfig(*configFile)
if err != nil {