From 93e61dbd75d96bd08b2666d4826e5ef00445f7d4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 18 Dec 2017 14:48:34 -0500 Subject: nslcd_systemd: don't call err.Error() unnecessarily --- nslcd_systemd/nslcd_systemd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nslcd_systemd/nslcd_systemd.go b/nslcd_systemd/nslcd_systemd.go index e920aab..d4ce084 100644 --- a/nslcd_systemd/nslcd_systemd.go +++ b/nslcd_systemd/nslcd_systemd.go @@ -191,7 +191,7 @@ func Main(backend Backend, limits nslcd_server.Limits) uint8 { sd_daemon.Notification{State: "RELOADING=1"}.Send(false) err := backend.Reload() if err != nil { - sd_daemon.Log.Notice(fmt.Sprintf("Could not reload backend: %s", err.Error())) + sd_daemon.Log.Notice(fmt.Sprintf("Could not reload backend: %v", err)) return sd_daemon.EXIT_NOTRUNNING } sd_daemon.Notification{State: "READY=1"}.Send(false) -- cgit v1.2.3-2-g168b