Skip to content

Commit

Permalink
Fix #343
Browse files Browse the repository at this point in the history
- change "npm WARN" from error to warning
  • Loading branch information
pitgrap committed Mar 10, 2016
1 parent 63bcbf1 commit f7247b2
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -53,7 +53,12 @@ private static LogLevelAgnosticLogger errorLoggerFor(final Logger logger){
return new LogLevelAgnosticLogger() {
@Override
public void log(String value) {
logger.error(value);
// fix #343
if (value.startsWith("npm WARN ")) {
logger.warn(value);
} else {
logger.error(value);
}
}
};
}
Expand Down

1 comment on commit f7247b2

@breun
Copy link

@breun breun commented on f7247b2 Mar 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it still a log level agnostic logger after this change? :)

Please sign in to comment.