Fix logging for chunked downloads