From 27991d0a7b03692045378f083f37bbe5b8ac4cef Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 27 Feb 2010 19:46:04 +0000 Subject: prosody: Bump log message describing current connection backend to level 'info' --- prosody | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prosody') diff --git a/prosody b/prosody index 49580bd9..b13369a9 100755 --- a/prosody +++ b/prosody @@ -308,7 +308,7 @@ function init_data_store() end function prepare_to_start() - log("debug", "Prosody is using the %s backend for connection handling", server.get_backend()); + log("info", "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 5455626d0a09235b73f698a19d5a7ce9d41545be Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Mon, 19 Apr 2010 18:28:12 +0500 Subject: prosody: Set metatable on functions to allow easy access to upvalues. --- prosody | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'prosody') diff --git a/prosody b/prosody index 46f3331f..c7f91456 100755 --- a/prosody +++ b/prosody @@ -123,6 +123,29 @@ function sandbox_require() end end +function set_function_metatable() + local mt = {}; + function mt.__index(f, upvalue) + local i, name, value = 0; + repeat + i = i + 1; + name, value = debug.getupvalue(f, i); + until name == upvalue or name == nil; + return value; + end + function mt.__newindex(f, upvalue, value) + local i, name = 0; + repeat + i = i + 1; + name = debug.getupvalue(f, i); + until name == upvalue or name == nil; + if name then + debug.setupvalue(f, i, value); + end + end + debug.setmetatable(function() end, mt); +end + function init_global_state() bare_sessions = {}; full_sessions = {}; @@ -418,6 +441,7 @@ read_config(); init_logging(); check_dependencies(); sandbox_require(); +set_function_metatable(); load_libraries(); init_global_state(); read_version(); -- cgit v1.2.3 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 86720e0bef3dc8532e32c4c50824317ec1e7a95a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 29 Jun 2010 20:23:00 +0100 Subject: Backed out changeset 454e1cf18daf (this isn't for debugging, it's to inform the user) --- prosody | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prosody') diff --git a/prosody b/prosody index 0232b83b..c7f91456 100755 --- a/prosody +++ b/prosody @@ -331,7 +331,7 @@ function init_data_store() end function prepare_to_start() - log("debug", "Prosody is using the %s backend for connection handling", server.get_backend()); + log("info", "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