bring back fallback logging

This commit is contained in:
Nik Graf 2017-08-14 14:02:50 +02:00
parent 0f64ff0f49
commit 22b151fef6
No known key found for this signature in database
GPG Key ID: 7A97512F916175F1

View File

@ -64,5 +64,9 @@ module.exports = msg => {
const processedMsg = getMessage(msg);
if (processedMsg) {
log(`${prefix}${processedMsg}${os.EOL}`);
} else {
// NOTE keep this here - it's a worse UX to skip messages
// rather than having an unformated message logged
log(`${prefix}raw output: ${colorDim(msg)}${os.EOL}`);
}
};