Skip to content

Commit

Permalink
Merge pull request #2337 from iam-veeramalla/printversion
Browse files Browse the repository at this point in the history
feat: print dex version in the logs
  • Loading branch information
sagikazarmark authored Nov 25, 2021
2 parents f70015d + 528ef18 commit e00e75b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/dex/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"net"
"net/http"
"os"
"runtime"
"strings"
"syscall"
"time"
Expand Down Expand Up @@ -91,6 +92,15 @@ func runServe(options serveOptions) error {
if err != nil {
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 != "" {
logger.Infof("config using log level: %s", c.Logger.Level)
}
Expand Down

0 comments on commit e00e75b

Please sign in to comment.