Mercurial > pidgin
comparison libpurple/proxy.c @ 27231:627d23bfdb05
Increase the logging level of some debugging messages that seemed to be a
bit more important than "informational". From a patch by Mauro but with
additional changes recommended by rekkanoryo.
Fixes #8751.
committer: Elliott Sales de Andrade <qulogic@pidgin.im>
author | mauro.brasil@tqi.com.br |
---|---|
date | Thu, 02 Jul 2009 04:26:00 +0000 |
parents | 4c3b1bb3ba91 |
children | 70629a4a89ec |
comparison
equal
deleted
inserted
replaced
27230:75acd9ad14be | 27231:627d23bfdb05 |
---|---|
401 if (!loaded) { | 401 if (!loaded) { |
402 loaded = TRUE; | 402 loaded = TRUE; |
403 MyWinHttpGetIEProxyConfig = (LPFNWINHTTPGETIEPROXYCONFIG) | 403 MyWinHttpGetIEProxyConfig = (LPFNWINHTTPGETIEPROXYCONFIG) |
404 wpurple_find_and_loadproc("winhttp.dll", "WinHttpGetIEProxyConfigForCurrentUser"); | 404 wpurple_find_and_loadproc("winhttp.dll", "WinHttpGetIEProxyConfigForCurrentUser"); |
405 if (!MyWinHttpGetIEProxyConfig) | 405 if (!MyWinHttpGetIEProxyConfig) |
406 purple_debug_info("proxy", "Unable to read Windows Proxy Settings.\n"); | 406 purple_debug_warning("proxy", "Unable to read Windows Proxy Settings.\n"); |
407 } | 407 } |
408 | 408 |
409 if (!MyWinHttpGetIEProxyConfig) | 409 if (!MyWinHttpGetIEProxyConfig) |
410 return NULL; | 410 return NULL; |
411 | 411 |
570 g_free(connect_data->read_buffer); | 570 g_free(connect_data->read_buffer); |
571 connect_data->read_buffer = NULL; | 571 connect_data->read_buffer = NULL; |
572 | 572 |
573 if (error_message != NULL) | 573 if (error_message != NULL) |
574 { | 574 { |
575 purple_debug_info("proxy", "Connection attempt failed: %s\n", | 575 purple_debug_error("proxy", "Connection attempt failed: %s\n", |
576 error_message); | 576 error_message); |
577 if (connect_data->hosts != NULL) | 577 if (connect_data->hosts != NULL) |
578 try_connect(connect_data); | 578 try_connect(connect_data); |
579 else | 579 else |
580 { | 580 { |
656 } | 656 } |
657 | 657 |
658 if (ret != 0 || error != 0) { | 658 if (ret != 0 || error != 0) { |
659 if (ret != 0) | 659 if (ret != 0) |
660 error = errno; | 660 error = errno; |
661 purple_debug_info("proxy", "Error connecting to %s:%d (%s).\n", | 661 purple_debug_error("proxy", "Error connecting to %s:%d (%s).\n", |
662 connect_data->host, connect_data->port, g_strerror(error)); | 662 connect_data->host, connect_data->port, g_strerror(error)); |
663 | 663 |
664 purple_proxy_connect_data_disconnect(connect_data, g_strerror(error)); | 664 purple_proxy_connect_data_disconnect(connect_data, g_strerror(error)); |
665 return; | 665 return; |
666 } | 666 } |