Skip to content

Commit

Permalink
Fix polluted stdout by using console.warn. Fixes mynameiswhm#33
Browse files Browse the repository at this point in the history
  • Loading branch information
nh2 committed Jun 28, 2019
1 parent a33e301 commit e66b720
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compress.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ function adapter() {
} catch (err) {}

try {
console.log('warning: couldn\'t find native brotli support in zlib library. trying to fall back to iltorb.');
console.warn('warning: couldn\'t find native brotli support in zlib library. trying to fall back to iltorb.');
var iltorb = require('iltorb');
return iltorb.compress;
} catch (err) {
console.log('warning: couldn\'t load iltorb library. trying to fall back to brotli.js.');
console.log(err);
console.warn('warning: couldn\'t load iltorb library. trying to fall back to brotli.js.');
console.warn(err);

try {
var brotli = require('brotli');
Expand Down

0 comments on commit e66b720

Please sign in to comment.