examples/http: Fix logging
This commit is contained in:
parent
772e9ca290
commit
0077a5d115
@ -42,7 +42,7 @@ func (this *httpServer) Init(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *httpServer) Run() error {
|
func (this *httpServer) Run() error {
|
||||||
log.Printf("[http] listening on %s", this.server.Addr)
|
log.Printf("(i) [http-server] listening on %s", this.server.Addr)
|
||||||
err := this.server.ListenAndServe()
|
err := this.server.ListenAndServe()
|
||||||
if errors.Is(err, http.ErrServerClosed) { return nil }
|
if errors.Is(err, http.ErrServerClosed) { return nil }
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user