Software /
code /
clix
Changeset
53:bfc53225a38f
clix.export: Use verses debug()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 15 Mar 2011 13:09:14 +0100 |
parents | 52:95ea1dca92ed |
children | 54:1c589502da76 |
files | clix/export.lua |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/clix/export.lua Mon Mar 14 16:46:27 2011 +0000 +++ b/clix/export.lua Tue Mar 15 13:09:14 2011 +0100 @@ -22,11 +22,11 @@ for i = 1,#xmlns_nodes do out = out + 1; local node = xmlns_nodes[i]; - print(("requesting %s*%s"):format(node[2], node[1])); + conn:debug("requesting %s*%s", node[2], node[1]); conn:send_iq(verse.iq{type="get"} :tag(node[1], { xmlns = node[2] }) , function(stanza) - print(("got %s*%s"):format(node[2], node[1])); + conn:debug("got %s*%s", node[2], node[1]); local query = stanza:get_child(node[1], node[2]); if query then export:add_child(query):up(); @@ -38,12 +38,12 @@ for i = 1,#xmlns_private_nodes do out = out + 1; local node = xmlns_private_nodes[i]; - print(("requesting private node %s*%s"):format(node[2], node[1])); + conn:debug("requesting private node %s*%s", node[2], node[1]); conn:send_iq(verse.iq{type="get"} :tag("query", { xmlns = xmlns_private }) :tag(node[1], { xmlns = node[2] }) , function(stanza) - print(("got private %s*%s"):format(node[2], node[1])); + conn:debug("got private %s*%s", node[2], node[1]); local query = stanza:get_child("query", xmlns_private); if query then export:add_child(query):up();