init.lua: Print outgoing stanzas and all log messages when debug logging enabled

Mon, 04 Jun 2012 17:37:27 +0200

author
Kim Alvefur <zash@zash.se>
date
Mon, 04 Jun 2012 17:37:27 +0200
changeset 95
6b3ee06d5837
parent 94
5cc3b481d3e7
child 96
c2c30f94e619

init.lua: Print outgoing stanzas and all log messages when debug logging enabled

init.lua file | annotate | diff | comparison | revisions
--- a/init.lua	Tue Feb 07 17:38:10 2012 +0100
+++ b/init.lua	Mon Jun 04 17:37:27 2012 +0200
@@ -118,6 +118,8 @@
 	
 	if config.debug then
 		c:hook("incoming-raw", print);
+		c:hook("outgoing-raw", print);
+		verse.set_log_handler(print);
 	end
 	
 	for _, plugin in ipairs(config.plugins or {}) do

mercurial