changeset 24215:1263f302d05e

Add debug output when proxy configuration issues are seen. This will help to debug some weird connection problems. References #7278
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 21 Oct 2008 16:01:13 +0000
parents fddab13f1630
children 9ee331d042c8
files libpurple/proxy.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/proxy.c	Mon Oct 20 13:38:53 2008 +0000
+++ b/libpurple/proxy.c	Tue Oct 21 16:01:13 2008 +0000
@@ -2152,6 +2152,8 @@
 			break;
 
 		default:
+			purple_debug_error("proxy", "Invalid Proxy type (%d) specified.\n",
+							   purple_proxy_info_get_type(connect_data->gpi));
 			purple_proxy_connect_data_destroy(connect_data);
 			return NULL;
 	}
@@ -2160,6 +2162,7 @@
 			connectport, connection_host_resolved, connect_data);
 	if (connect_data->query_data == NULL)
 	{
+		purple_debug_error("proxy", "dns query failed unexpectedly.\n");
 		purple_proxy_connect_data_destroy(connect_data);
 		return NULL;
 	}