mirror of https://github.com/knative/pkg.git
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:
parent
4c84b1b51e
commit
bd3cf5174f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue