Printf log message with the right type when showing port (#2709)

This will show up like this in the log

13:35:17 Probes server listening on port %!s(int=8080)

with proper type casted it will look a bit better !

Signed-off-by: Chmouel Boudjnah <chmouel@chmouel.com>
This commit is contained in:
Chmouel Boudjnah 2023-03-29 16:15:01 +02:00 committed by GitHub
parent 4c84b1b51e
commit bd3cf5174f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ func ServeHealthProbes(ctx context.Context, port int) error {
}()
// start the web server on port and accept requests
logger.Infof("Probes server listening on port %s", port)
logger.Infof("Probes server listening on port %d", port)
if err := server.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) {
return err
}