Signed-off-by: Shivam <maishivamhoo@gmail.com>
This commit is contained in:
@@ -9,6 +9,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
|
"fmt"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
@@ -95,11 +96,11 @@ func main() {
|
|||||||
level = slog.LevelDebug
|
level = slog.LevelDebug
|
||||||
}
|
}
|
||||||
slogutil.SetDefaultLevel(level)
|
slogutil.SetDefaultLevel(level)
|
||||||
|
|
||||||
slog.Info(build.LongVersionFor("stdiscosrv"))
|
|
||||||
if cli.Version {
|
if cli.Version {
|
||||||
|
fmt.Println(build.LongVersionFor("stdiscosrv"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
slog.Info(build.LongVersionFor("stdiscosrv"))
|
||||||
|
|
||||||
buildInfo.WithLabelValues(build.Version, runtime.Version(), build.User, build.Date.UTC().Format("2006-01-02T15:04:05Z")).Set(1)
|
buildInfo.WithLabelValues(build.Version, runtime.Version(), build.User, build.Date.UTC().Format("2006-01-02T15:04:05Z")).Set(1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user