Print proxy information when downloading
May help debug issues we come across with proxy behavior (e.g. those pesky segfaults) as well as be informative to the user when things aren't working quite right. Addresses FS#12396. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
89b0a76b3c
commit
cc7f3b705e
1 changed files with 6 additions and 0 deletions
|
@ -142,6 +142,12 @@ static int download_internal(const char *url, const char *localpath,
|
|||
dl_thisfile = 0;
|
||||
}
|
||||
|
||||
/* print proxy info for debug purposes */
|
||||
_alpm_log(PM_LOG_DEBUG, "HTTP_PROXY: %s\n", getenv("HTTP_PROXY"));
|
||||
_alpm_log(PM_LOG_DEBUG, "http_proxy: %s\n", getenv("http_proxy"));
|
||||
_alpm_log(PM_LOG_DEBUG, "FTP_PROXY: %s\n", getenv("FTP_PROXY"));
|
||||
_alpm_log(PM_LOG_DEBUG, "ftp_proxy: %s\n", getenv("ftp_proxy"));
|
||||
|
||||
/* libdownload does not reset the error code, reset it in
|
||||
* the case of previous errors */
|
||||
downloadLastErrCode = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue