/jserror: Enable colors to improve readability

This commit is contained in:
Richard Hansen 2021-10-07 19:47:59 -04:00
parent 629e7d5072
commit 3a5c44c8f7

View file

@ -29,7 +29,7 @@ exports.expressCreateServer = (hookName, args, cb) => {
clientLogger.warn(`${data.msg} --`, {
[util.inspect.custom]: (depth, options) => {
// Depth is forced to infinity to ensure that all of the provided data is logged.
options = Object.assign({}, options, {depth: Infinity});
options = Object.assign({}, options, {depth: Infinity, colors: true});
return util.inspect(data, options);
},
});