Add some build-time logging
Fix logging for chunked downloads