Skip to content

Commit

Permalink
tweak log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtwallace committed Jan 10, 2024
1 parent 5815929 commit 8858ed0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/main/https_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ func (app *app) startHttpsServer() error {
}

// launch https
app.logger.Infof("starting lego-certhub-client bound to %s", srv.Addr)
app.logger.Infof("starting lego-certhub-client https server bound to %s", srv.Addr)

// create listener for web server
ln, err := net.Listen("tcp", srv.Addr)
if err != nil {
return fmt.Errorf("lego-certhub-client server cannot bind to %s (%s), exiting", srv.Addr, err)
return fmt.Errorf("lego-certhub-client https server cannot bind to %s (%s), exiting", srv.Addr, err)
}

// start server
Expand All @@ -45,7 +45,7 @@ func (app *app) startHttpsServer() error {

err := srv.ServeTLS(ln, "", "")
if err != nil && !errors.Is(err, http.ErrServerClosed) {
app.logger.Errorf("lego-certhub-client server returned error (%s)", err)
app.logger.Errorf("lego-certhub-client https server returned error (%s)", err)
}

app.logger.Info("https server shutdown complete")
Expand Down

0 comments on commit 8858ed0

Please sign in to comment.