prosody

changeset 3029
0c7beabfed5b
parent 2986
fff153f7f4de
parent 3024
9c74785c6351
child 3033
0194d7eab8a5
--- 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");
 

mercurial