diff -r 948d511f479c -r 0c7beabfed5b prosody --- a/prosody Fri May 07 07:18:09 2010 +0500 +++ b/prosody Fri May 07 16:21:04 2010 +0500 @@ -144,6 +144,10 @@ 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 @@ -324,7 +328,7 @@ 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 prosody.events.fire_event("server-starting");