Fix wrong format type in Fatalf call (#48)

> `web/listener_linux.go:57:3: github.com/sirupsen/logrus.Fatalf format %s has arg len(listeners) of wrong type int`

for ints we use %d
This commit is contained in:
kayos 2022-07-23 05:20:28 -07:00 committed by GitHub
parent 9cbc95a6db
commit 580fc08e0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ func startListener(conf *config.Config, r *chi.Mux) error {
}
s = http.Serve(listeners[0], r)
default:
log.Fatalf("Asked to listen on %s sockets via systemd activation. Sorry we currently only support listening on 1 socket.", len(listeners))
log.Fatalf("Asked to listen on %d sockets via systemd activation. Sorry we currently only support listening on 1 socket.", len(listeners))
}
return s
}