aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/core
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-03-15 20:56:19 +0100
committerfiaxh <git@lightrise.org>2019-03-15 22:01:34 +0100
commit6f6e4b97cba49469440fc0aefafb71623a3eabb9 (patch)
treee5a11627d5d34a9eac9ad50ee0822a05fe7b91bf /xmpp-vala/src/core
parenta49326979140750cc22cf483182274638568e43d (diff)
downloaddino-6f6e4b97cba49469440fc0aefafb71623a3eabb9.tar.gz
dino-6f6e4b97cba49469440fc0aefafb71623a3eabb9.zip
Use glib log functions
Diffstat (limited to 'xmpp-vala/src/core')
-rw-r--r--xmpp-vala/src/core/xmpp_stream.vala6
1 files changed, 3 insertions, 3 deletions
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) {