From 6f6e4b97cba49469440fc0aefafb71623a3eabb9 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Fri, 15 Mar 2019 20:56:19 +0100 Subject: Use glib log functions --- xmpp-vala/src/core/xmpp_stream.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmpp-vala/src') diff --git a/xmpp-vala/src/core/xmpp_stream.vala b/xmpp-vala/src/core/xmpp_stream.vala index 98c89716..aff0b216 100644 --- a/xmpp-vala/src/core/xmpp_stream.vala +++ b/xmpp-vala/src/core/xmpp_stream.vala @@ -67,7 +67,7 @@ public class XmppStream { } reset_stream((!)stream); } catch (Error e) { - stderr.printf("CONNECTION LOST?\n"); + debug("[%p] Could not connect to server", this); throw new IOStreamError.CONNECT(e.message); } yield loop(); @@ -153,7 +153,7 @@ public class XmppStream { public XmppStream add_module(XmppStreamModule module) { foreach (XmppStreamModule m in modules) { if (m.get_ns() == module.get_ns() && m.get_id() == module.get_id()) { - print("[%p] Adding already added module: %s\n".printf(this, module.get_id())); + warning("[%p] Adding already added module: %s\n", this, module.get_id()); return this; } } @@ -221,7 +221,7 @@ public class XmppStream { features = node; received_features_node(this); } else if (node.ns_uri == NS_URI && node.name == "stream" && node.pseudo) { - print("disconnect\n"); + debug("[%p] Server closed stream", this); disconnect(); return; } else if (node.ns_uri == JABBER_URI) { -- cgit v1.2.3-70-g09d2