Changeset

1416:7ddb522d9b28

mod_smacks: Fix logging (Thanks Ge0rG)
author Kim Alvefur <zash@zash.se>
date Thu, 22 May 2014 08:30:16 +0200
parents 1415:8791fa8a18c8
children 1417:9b6fbababb8c
files mod_smacks/mod_smacks.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua	Mon May 19 17:00:12 2014 +0200
+++ b/mod_smacks/mod_smacks.lua	Thu May 22 08:30:16 2014 +0200
@@ -205,11 +205,11 @@
 	local handled_stanza_count = h-origin.last_acknowledged_stanza;
 	local queue = origin.outgoing_stanza_queue;
 	if handled_stanza_count > #queue then
-		session.log("warn", "The client says it handled %d new stanzas, but we only sent %d :)",
+		origin.log("warn", "The client says it handled %d new stanzas, but we only sent %d :)",
 			handled_stanza_count, #queue);
-		session.log("debug", "Client h: %d, our h: %d", tonumber(stanza.attr.h), origin.last_acknowledged_stanza);
+		origin.log("debug", "Client h: %d, our h: %d", tonumber(stanza.attr.h), origin.last_acknowledged_stanza);
 		for i=1,#queue do
-			session.log("debug", "Q item %d: %s", i, tostring(queue[i]));
+			origin.log("debug", "Q item %d: %s", i, tostring(queue[i]));
 		end
 	end
 	for i=1,math_min(handled_stanza_count,#queue) do