aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-05-07 16:21:04 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-05-07 16:21:04 +0500
commit896c6443c55ba89cc4a22063ab91c8f105a96149 (patch)
treedb9f4c42c3f51af2e4552ddb5de606d5cce19f35 /prosody
parent2f333716e6e6dcb12648ed8c8683d7189ead4efe (diff)
parentcfb093a9f4e464fba1e56c2e3e340ece4219a411 (diff)
downloadprosody-896c6443c55ba89cc4a22063ab91c8f105a96149.tar.gz
prosody-896c6443c55ba89cc4a22063ab91c8f105a96149.zip
Merge 0.7->trunk
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody6
1 files changed, 5 insertions, 1 deletions
diff --git a/prosody b/prosody
index 8e96eb46..88620b38 100755
--- a/prosody
+++ b/prosody
@@ -144,6 +144,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
@@ -324,7 +328,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
prosody.events.fire_event("server-starting");