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