summaryrefslogtreecommitdiff
path: root/nslcd_systemd
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-09-08 14:54:42 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-09-08 16:55:55 -0400
commit3e1d4d0c562ab99e5a81030a08d224e8174152b9 (patch)
tree7344b745d21d42940119c3139e608293f8ea0ec0 /nslcd_systemd
parentf3a519393ad1747849043e62ee58d65a6b73ea63 (diff)
nslcd_systemd: say "temporary error" when logging a temporary net error
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 0856b70..f7936cb 100644
--- a/nslcd_systemd/nslcd_systemd.go
+++ b/nslcd_systemd/nslcd_systemd.go
@@ -145,7 +145,7 @@ func Main(backend Backend) uint8 {
if ne, ok := err.(net.Error); ok && ne.Timeout() {
last = true
} else if ne, ok := err.(net.Error); ok && ne.Temporary() {
- sd_daemon.Log.Notice(fmt.Sprintf("%v", err))
+ sd_daemon.Log.Notice(fmt.Sprintf("temporary error %v", err))
if tempDelay == 0 {
tempDelay = 5 * time.Millisecond
} else {