Fix log message in downloadFile to be more general