Changeset

3566:b50be75c8bef

mod_auth_ldap: Use module API for logging
author Kim Alvefur <zash@zash.se>
date Mon, 29 Apr 2019 00:05:20 +0200
parents 3565:7344513ee160
children 3567:179424d557f2
files mod_auth_ldap/mod_auth_ldap.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_auth_ldap/mod_auth_ldap.lua	Mon Apr 29 00:04:16 2019 +0200
+++ b/mod_auth_ldap/mod_auth_ldap.lua	Mon Apr 29 00:05:20 2019 +0200
@@ -111,7 +111,7 @@
 	local function test_password(userdn, password)
 		local ok, err = lualdap.open_simple(ldap_server, userdn, password, ldap_tls);
 		if not ok then
-			log("debug", "ldap open_simple error: %s", err);
+			module:log("debug", "ldap open_simple error: %s", err);
 		end
 		return not not ok;
 	end