mirror of
https://github.com/strapi/strapi.git
synced 2025-07-16 13:32:05 +00:00
14 lines
261 B
JavaScript
14 lines
261 B
JavaScript
'use strict';
|
|
|
|
const { format } = require('winston');
|
|
|
|
module.exports = format(info => {
|
|
if (info instanceof Error) {
|
|
return Object.assign({}, info, {
|
|
message: `${info.message}${info.stack ? `\n` + info.stack : ''}`,
|
|
});
|
|
}
|
|
|
|
return info;
|
|
});
|