From 5394f55419896520bd65088e5e71078006478e9c Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 7 May 2010 16:00:33 +0500 Subject: prosody: Lowered log level for a log message. --- prosody | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prosody') diff --git a/prosody b/prosody index c7f91456..0232b83b 100755 --- a/prosody +++ b/prosody @@ -331,7 +331,7 @@ function init_data_store() end function prepare_to_start() - log("info", "Prosody is using the %s backend for connection handling", server.get_backend()); + log("debug", "Prosody is using the %s backend for connection handling", server.get_backend()); -- Signal to modules that we are ready to start eventmanager.fire_event("server-starting"); prosody.events.fire_event("server-starting"); -- cgit v1.2.3 From 43658f9669a5a3566bdf12e81b3793fdecacf4eb Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 7 May 2010 16:02:29 +0500 Subject: prosody: Modified function metatable for better string representation of functions. --- prosody | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'prosody') diff --git a/prosody b/prosody index 0232b83b..e4e82105 100755 --- a/prosody +++ b/prosody @@ -143,6 +143,10 @@ function set_function_metatable() debug.setupvalue(f, i, value); end end + function mt.__tostring(f) + local info = debug.getinfo(f); + return ("function(%s:%d)"):format(info.short_src:match("[^\\/]*$"), info.linedefined); + end debug.setmetatable(function() end, mt); end -- cgit v1.2.3