From 580fc08e0e24ccf0d42925c278df953fbe5a9c47 Mon Sep 17 00:00:00 2001 From: kayos Date: Sat, 23 Jul 2022 05:20:28 -0700 Subject: [PATCH] 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 --- web/listener_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/listener_linux.go b/web/listener_linux.go index 56cc7b3..1bad847 100644 --- a/web/listener_linux.go +++ b/web/listener_linux.go @@ -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 }