forked from mystiq/dex
Merge pull request #2337 from iam-veeramalla/printversion
feat: print dex version in the logs
This commit is contained in:
commit
e00e75b773
1 changed files with 10 additions and 0 deletions
|
@ -9,6 +9,7 @@ import (
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
@ -91,6 +92,15 @@ func runServe(options serveOptions) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("invalid config: %v", err)
|
return fmt.Errorf("invalid config: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.Infof(
|
||||||
|
"Dex Version: %s, Go Version: %s, Go OS/ARCH: %s %s",
|
||||||
|
version,
|
||||||
|
runtime.Version(),
|
||||||
|
runtime.GOOS,
|
||||||
|
runtime.GOARCH,
|
||||||
|
)
|
||||||
|
|
||||||
if c.Logger.Level != "" {
|
if c.Logger.Level != "" {
|
||||||
logger.Infof("config using log level: %s", c.Logger.Level)
|
logger.Infof("config using log level: %s", c.Logger.Level)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue