mirror of
https://github.com/strapi/strapi.git
synced 2025-07-29 03:50:26 +00:00
12 lines
236 B
JavaScript
12 lines
236 B
JavaScript
'use strict';
|
|
|
|
const { format } = require('winston');
|
|
|
|
module.exports = format((info) => {
|
|
if (info instanceof Error) {
|
|
return { ...info, message: `${info.message}${info.stack ? `\n${info.stack}` : ''}` };
|
|
}
|
|
|
|
return info;
|
|
});
|