mod_auth_ldap: Use module API for logging
authorKim Alvefur <zash@zash.se>
Mon, 29 Apr 2019 00:05:20 +0200
changeset 3570 b50be75c8bef
parent 3569 7344513ee160
child 3571 179424d557f2
mod_auth_ldap: Use module API for logging
mod_auth_ldap/mod_auth_ldap.lua
--- 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