Commit 478dcd23 478dcd2356895f1dbeecfadabf4812bf9003415e by Nicolas Perriault

added log message when a resource has been downloaded

1 parent d17faf00
......@@ -345,6 +345,7 @@ Casper.prototype.download = function download(url, targetPath) {
try {
fs.write(targetPath, cu.decode(this.base64encode(url)), 'w');
this.emit('downloaded.file', targetPath);
this.log(f("Downloaded and saved resource in %s", targetPath));
} catch (e) {
this.log(f("Error while downloading %s to %s: %s", url, targetPath, e), "error");
}
......