Skip to content

Commit

Permalink
Only log about JWT Auth when it is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Sep 3, 2024
1 parent f9aec5c commit 9407412
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ func main() {
watchdogConfig.ExecTimeout,
watchdogConfig.HealthcheckInterval)

log.Printf("JWT Auth: %v\n", watchdogConfig.JWTAuthentication)
if watchdogConfig.JWTAuthentication {
log.Printf("JWT Auth: %v\n", watchdogConfig.JWTAuthentication)
}

log.Printf("Listening on port: %d\n", watchdogConfig.TCPPort)

listenUntilShutdown(s,
Expand Down

0 comments on commit 9407412

Please sign in to comment.