Skip to content

Commit

Permalink
feat: add startup log message
Browse files Browse the repository at this point in the history
  • Loading branch information
clambin committed Apr 16, 2024
1 parent d8cc1fa commit 7c446d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/traefik-simple-auth/traefik-simple-auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ var (
clientId = flag.String("client-id", "", "Google OAuth Client ID")
clientSecret = flag.String("client-secret", "", "Google OAuth Client Secret")
secret = flag.String("secret", "", "Secret to use for authentication")

version string = "change-me"
)

func main() {
Expand All @@ -39,6 +41,8 @@ func main() {
}
l := slog.New(slog.NewJSONHandler(os.Stderr, &opts))

l.Info("Starting traefik-simple-auth", "version", version)

go func() {
if err := http.ListenAndServe(*promAddr, promhttp.Handler()); !errors.Is(err, http.ErrServerClosed) {
l.Error("failed to start Prometheus metrics handler", "error", err)
Expand Down

0 comments on commit 7c446d5

Please # to comment.