mirror of
https://github.com/strapi/strapi.git
synced 2025-07-18 06:24:58 +00:00
12 lines
227 B
JavaScript
12 lines
227 B
JavaScript
'use strict';
|
|
|
|
const { format } = require('winston');
|
|
|
|
module.exports = format(info => {
|
|
if (info instanceof Error) {
|
|
return Object.assign({}, info, { message: `${info.message}\n${info.stack}` });
|
|
}
|
|
|
|
return info;
|
|
});
|