clever-tools 3.13.0 → 3.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/models/log-v4.js +4 -1
package/package.json
CHANGED
package/src/models/log-v4.js
CHANGED
|
@@ -9,6 +9,8 @@ import * as ExitStrategy from '../models/exit-strategy-option.js';
|
|
|
9
9
|
import { getBest } from './domain.js';
|
|
10
10
|
import { conf } from './configuration.js';
|
|
11
11
|
|
|
12
|
+
const RESET_COLOR = '\x1B[0m';
|
|
13
|
+
|
|
12
14
|
// 2000 logs per 100ms maximum
|
|
13
15
|
const THROTTLE_ELEMENTS = 2000;
|
|
14
16
|
const THROTTLE_PER_IN_MILLISECONDS = 100;
|
|
@@ -67,6 +69,7 @@ export async function displayLogs (params) {
|
|
|
67
69
|
return;
|
|
68
70
|
case 'human':
|
|
69
71
|
default:
|
|
72
|
+
if (log.message === RESET_COLOR) return;
|
|
70
73
|
Logger.println(formatLogLine(log));
|
|
71
74
|
}
|
|
72
75
|
});
|
|
@@ -162,7 +165,7 @@ function formatLogLine (log) {
|
|
|
162
165
|
else if (isBuildSucessMessage(log)) {
|
|
163
166
|
return `${date.toISOString()}: ${colors.bold.blue(message)}`;
|
|
164
167
|
}
|
|
165
|
-
return `${date.toISOString()}: ${message}`;
|
|
168
|
+
return `${date.toISOString()}: ${message}${RESET_COLOR}`;
|
|
166
169
|
}
|
|
167
170
|
|
|
168
171
|
function isCleverMessage (log) {
|