Skip to content

Commit

Permalink
Write to stderr rather than stdout with console.log. (n1k0#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattblaha authored and Matt Blaha committed Jan 9, 2017
1 parent 3e3d366 commit d871579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phantom-scrape.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ page.settings.resourceTimeout = 5000;

// if we do timeout a slow resource, say something useful
page.onResourceTimeout = function(request) {
console.log('Response (#' + request.id + '): ' + JSON.stringify(request));
require("system").stderr.write('Response (#' + request.id + '): ' + JSON.stringify(request));
};

page.onConsoleMessage = function(msg) {
Expand Down

0 comments on commit d871579

Please sign in to comment.