Unify connection debug messages

This commit is contained in:
selurvedu 2021-03-01 05:16:47 +00:00 committed by fiaxh
parent 83fcc295fe
commit f15982de72
2 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ public class Xmpp.DirectTlsXmppStream : TlsXmppStream {
public override async void connect() throws IOStreamError {
SocketClient client = new SocketClient();
try {
debug("Connecting to %s %i (tls)", host, port);
debug("Connecting to %s:%i (tls)", host, port);
IOStream? io_stream = yield client.connect_to_host_async(host, port);
TlsConnection tls_connection = TlsClientConnection.new(io_stream, new NetworkAddress(remote_name.to_string(), port));
#if ALPN_SUPPORT
@ -31,4 +31,4 @@ public class Xmpp.DirectTlsXmppStream : TlsXmppStream {
throw new IOStreamError.CONNECT("Failed connecting to %s:%i (tls): %s", host, port, e.message);
}
}
}
}

View file

@ -16,7 +16,7 @@ public class Xmpp.StartTlsXmppStream : TlsXmppStream {
public override async void connect() throws IOStreamError {
try {
SocketClient client = new SocketClient();
debug("Connecting to %s %i (starttls)", host, port);
debug("Connecting to %s:%i (starttls)", host, port);
IOStream stream = yield client.connect_to_host_async(host, port);
reset_stream(stream);
@ -54,4 +54,4 @@ public class Xmpp.StartTlsXmppStream : TlsXmppStream {
throw new IOStreamError.CONNECT("Failed connecting to %s:%i (starttls): %s", host, port, e.message);
}
}
}
}