Fix for debug logging in ldapclient