mod_auth_internal_hashed: Use logger setup by moduleapi instead of going for util.logger directly
authorKim Alvefur <zash@zash.se>
Sat, 10 Aug 2013 20:17:45 +0200
changeset 5783 3a81e3b0ea4f
parent 5782 f449da907b85
child 5784 02217725454b
mod_auth_internal_hashed: Use logger setup by moduleapi instead of going for util.logger directly
plugins/mod_auth_internal_hashed.lua
--- a/plugins/mod_auth_internal_hashed.lua	Sat Aug 10 20:15:25 2013 +0200
+++ b/plugins/mod_auth_internal_hashed.lua	Sat Aug 10 20:17:45 2013 +0200
@@ -7,12 +7,13 @@
 -- COPYING file in the source package for more information.
 --
 
-local log = require "util.logger".init("auth_internal_hashed");
 local getAuthenticationDatabaseSHA1 = require "util.sasl.scram".getAuthenticationDatabaseSHA1;
 local usermanager = require "core.usermanager";
 local generate_uuid = require "util.uuid".generate;
 local new_sasl = require "util.sasl".new;
 
+local log = module._log;
+
 local accounts = module:open_store("accounts");
 
 local to_hex;