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