Add more logging to download code
commit5853025137e64411d7be745a55936ec3e8868212
authorDan McGee <dan@archlinux.org>
Mon, 24 Oct 2011 18:49:14 +0000 (24 13:49 -0500)
committerDan McGee <dan@archlinux.org>
Mon, 24 Oct 2011 18:49:14 +0000 (24 13:49 -0500)
treec8931910a62079263d5dc224137acb0eeb02f736
parentd6e3446e70bcda9c0f28d80110d588106daa4b5c
Add more logging to download code

This adds a logger to the CURLE_OK case so we can always know the return
code if it was >= 400, and debug log it regardless. Also adjust another
logger to use the cURL error message directly, as well as use fstat()
when we have an open file handle rather than stat().

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/dload.c