Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging output and levels should be configurable #164

Closed
vetinari opened this issue May 15, 2018 · 0 comments · Fixed by #306
Closed

Logging output and levels should be configurable #164

vetinari opened this issue May 15, 2018 · 0 comments · Fixed by #306

Comments

@vetinari
Copy link
Contributor

The current logging with the standard log package can spam log files in certain circumstances:
issuing a search request to a slow server with timeouts set, reuse this connection to do another search and the old search request is dumped: https://github.com/go-ldap/ldap/blob/master/conn.go#L399-L400 - the current request is then processed normally.

Setting log level to debug should get the ldap.Debug messages in the logs, anything else disables it

My preferred choice would be logrus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants