@firestartr/cli 1.49.0-snapshot-3 → 1.49.0-snapshot-5
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/build/index.js +6 -3
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -289020,13 +289020,16 @@ function initLogger() {
|
|
|
289020
289020
|
? process.env.LOG_LEVEL
|
|
289021
289021
|
: 'info';
|
|
289022
289022
|
const useJson = String(process.env.CI).toLowerCase() !== 'true';
|
|
289023
|
-
const humanFormat = winston.format.printf((
|
|
289024
|
-
const
|
|
289023
|
+
const humanFormat = winston.format.printf((info) => {
|
|
289024
|
+
const level = info[Symbol.for('level')]; // raw, not colorized
|
|
289025
|
+
const msg = typeof info.message === 'string'
|
|
289026
|
+
? info.message
|
|
289027
|
+
: JSON.stringify(info.message);
|
|
289025
289028
|
if (level === 'error')
|
|
289026
289029
|
return `::error::${msg}`;
|
|
289027
289030
|
if (level === 'warn')
|
|
289028
289031
|
return `::warning::${msg}`;
|
|
289029
|
-
return `[${level}]: ${msg}`;
|
|
289032
|
+
return `[${info.level}]: ${msg}`;
|
|
289030
289033
|
});
|
|
289031
289034
|
logger = winston_default().createLogger({
|
|
289032
289035
|
level: logLevel,
|