Unify connection debug messages
This commit is contained in:
parent
83fcc295fe
commit
f15982de72
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue