From 3e1d4d0c562ab99e5a81030a08d224e8174152b9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 8 Sep 2017 14:54:42 -0400 Subject: nslcd_systemd: say "temporary error" when logging a temporary net error --- 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 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 { -- cgit v1.2.3-2-g168b