diff options
author | Florrie <towerofnix@gmail.com> | 2018-02-12 19:28:49 -0400 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2018-02-12 19:30:58 -0400 |
commit | fe65f1777f130ec9d61c5ce06532a551b5dcc899 (patch) | |
tree | a7691c4dba8ef3fc10b4971998e8712ef1ceb4c5 /src | |
parent | 60d4ac4b28eee349070ad0930330654e2d67e27d (diff) |
Make it reasonable to have crawl-http save to a file while verbosely logging
Diffstat (limited to 'src')
-rwxr-xr-x | src/crawl-http.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/crawl-http.js b/src/crawl-http.js index b40ed02..5a4932d 100755 --- a/src/crawl-http.js +++ b/src/crawl-http.js @@ -36,7 +36,7 @@ function crawl(absURL, opts = {}, internals = {}) { const verboseLog = text => { if (verbose) { - console.log(text) + console.error(text) } } @@ -203,7 +203,10 @@ async function main(args, shouldReturn = false) { // such. Defaults to false. verbose = true - console.log('Outputting verbosely.') + console.error( + 'Outputting verbosely. (Log output goes to STDERR - ' + + 'you can still pipe to a file to save your playlist.)' + ) }, 'v': util => util.alias('-verbose'), |