summaryrefslogtreecommitdiff
path: root/srv/api/api.go
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-05 19:33:40 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-05 19:33:40 -0600
commit0277c0276715d326a4bcf2be37d2aec5982078f7 (patch)
tree8a419665f0c838a5676a8ed6e4a9d23c59059f3d /srv/api/api.go
parent24e9541e02be403bd63d71979240377be2ecb122 (diff)
Get rid of loggerFatalError
Diffstat (limited to 'srv/api/api.go')
-rw-r--r--srv/api/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/srv/api/api.go b/srv/api/api.go
index adaf6a1..56f33b2 100644
--- a/srv/api/api.go
+++ b/srv/api/api.go
@@ -118,7 +118,7 @@ func New(params Params) (API, error) {
err := a.srv.Serve(l)
if err != nil && !errors.Is(err, http.ErrServerClosed) {
ctx := mctx.Annotate(context.Background(), a.params)
- params.Logger.Fatal(ctx, fmt.Sprintf("%s: %v", "serving http server", err))
+ params.Logger.Fatal(ctx, "serving http server", err)
}
}()