summaryrefslogtreecommitdiff
path: root/nslcd_systemd
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-12-18 14:48:34 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-12-18 15:09:27 -0500
commit93e61dbd75d96bd08b2666d4826e5ef00445f7d4 (patch)
treebd36db032da12e0be99b0b990f6ef3f849f1724d /nslcd_systemd
parent70bd3033eccda373294128e1b8a9e4919a3626ad (diff)
nslcd_systemd: don't call err.Error() unnecessarily
Diffstat (limited to 'nslcd_systemd')
-rw-r--r--nslcd_systemd/nslcd_systemd.go2
1 files changed, 1 insertions, 1 deletions
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)