[geary/wip/ubuntu-1804-network-unreachable: 2/2] Add some debug logging before conecting
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/ubuntu-1804-network-unreachable: 2/2] Add some debug logging before conecting
- Date: Mon, 18 Feb 2019 23:00:37 +0000 (UTC)
commit f6e32c44a6bb61f2e2dab32ebf6af92ee42d019c
Author: Michael Gratton <mike vee net>
Date: Tue Feb 19 09:57:11 2019 +1100
Add some debug logging before conecting
src/engine/api/geary-endpoint.vala | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
---
diff --git a/src/engine/api/geary-endpoint.vala b/src/engine/api/geary-endpoint.vala
index e408c1b3..b1f1ad1b 100644
--- a/src/engine/api/geary-endpoint.vala
+++ b/src/engine/api/geary-endpoint.vala
@@ -121,6 +121,25 @@ public class Geary.Endpoint : BaseObject {
public async GLib.SocketConnection connect_async(GLib.Cancellable? cancellable = null)
throws GLib.Error {
+ debug("Resolved addresses for: %s", this.remote.to_string());
+ GLib.SocketAddressEnumerator addrs = this.remote.enumerate();
+ GLib.SocketAddress? addr = yield addrs.next_async(cancellable);
+ while (addr != null) {
+ GLib.InetSocketAddress? inet_addr = addr as GLib.InetSocketAddress;
+ if (inet_addr != null) {
+ debug(" - %s:%u", inet_addr.address.to_string(), inet_addr.port);
+ }
+ GLib.NativeSocketAddress? native_addr = addr as GLib.NativeSocketAddress;
+ if (native_addr != null) {
+ debug(" - native!");
+ }
+ GLib.ProxyAddress? proxy_addr = addr as GLib.ProxyAddress;
+ if (proxy_addr != null) {
+ debug(" - proxy!");
+ }
+ addr = yield addrs.next_async(cancellable);
+ }
+
GLib.SocketClient client = get_socket_client();
GLib.IOError? connect_error = null;
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]