« get me outta code hell

Make it reasonable to have crawl-http save to a file while verbosely logging - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-02-12 19:28:49 -0400
committerFlorrie <towerofnix@gmail.com>2018-02-12 19:30:58 -0400
commitfe65f1777f130ec9d61c5ce06532a551b5dcc899 (patch)
treea7691c4dba8ef3fc10b4971998e8712ef1ceb4c5 /src
parent60d4ac4b28eee349070ad0930330654e2d67e27d (diff)
Make it reasonable to have crawl-http save to a file while verbosely logging
Diffstat (limited to 'src')
-rwxr-xr-xsrc/crawl-http.js7
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'),