Skip to content

Commit 0ce6cac

Browse files
committed
feat: update result log
1 parent 449c43f commit 0ce6cac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plugins/factory/_customResult.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ module.exports = function(app) {
6868
this.logger.printf('Response Result', `${this.method} ${this.path}`, '\n',
6969
JSON.stringify(Object.keys(json).reduce((obj, key) => {
7070
obj[key] = JSON.stringify(json[key]);
71+
if (obj[key] && obj[key].length > 100) {
72+
obj[key] = obj[key].slice(0, 100) + '...';
73+
}
7174
return obj;
7275
}, {}), null, 4)
7376
);

0 commit comments

Comments
 (0)