Skip to content

Commit 4f62f41

Browse files
authored
Merge pull request #611 from tidev/221230_gradle_Warning
fix: gradle warning color
2 parents eb1718f + ef1a61f commit 4f62f41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/logger.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ consoul.log = function (level, msg, meta, callback) {
136136
this.colorize || (msg = msg.stripColors);
137137

138138
if (this.colorize) {
139+
140+
// move gradle warnings into warn level instead of error
141+
if (msg.includes('[GRADLE] Warning:')) {
142+
level = 'warn';
143+
}
144+
139145
if (level === 'warn') {
140146
msg = msg.stripColors.yellow;
141147
} else if (level === 'error') {

0 commit comments

Comments
 (0)