diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-12-19 00:00:43 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-12-19 00:00:43 -0500 |
commit | dfe22c5b083443ed00df9431cbd3cd7a7b4fd6a7 (patch) | |
tree | d2f726fb6362adb109b35212db011987f736afcc /nslcd_server | |
parent | e690bd4e21c46428342d9fa43b8b15dfb7bef291 (diff) |
nslcd_{systemd,server}: log more things
Diffstat (limited to 'nslcd_server')
-rwxr-xr-x | nslcd_server/func_handlerequest.go.gen | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nslcd_server/func_handlerequest.go.gen b/nslcd_server/func_handlerequest.go.gen index 8abfb01..53baae9 100755 --- a/nslcd_server/func_handlerequest.go.gen +++ b/nslcd_server/func_handlerequest.go.gen @@ -181,6 +181,7 @@ while read -r request; do maybePanic(p.Write(out, p.NSLCD_VERSION)) maybePanic(p.Write(out, action)) ch := backend.${request}(ctx, req) + n := 0 for result := range ch { if err == nil { err = p.Write(out, p.NSLCD_RESULT_BEGIN) @@ -188,6 +189,8 @@ while read -r request; do if err == nil { err = p.Write(out, result) } + n++ + log.Info(fmt.Sprintf("Wrote %d results / err = %v", n, err)) } maybePanic(err) maybePanic(p.Write(out, p.NSLCD_RESULT_END)) |