We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6fd675 commit 4fe1bc6Copy full SHA for 4fe1bc6
lib/index.js
@@ -6,22 +6,8 @@
6
const util = require('util');
7
const axios = require('axios');
8
9
-function wrapErrorsWithInspect(items) {
10
- return items.map((item) => {
11
- if ((item instanceof Error) && item.stack) {
12
- return {
13
- inspect: function () {
14
- return `${util.format(item)}\n${item.stack}`;
15
- }
16
- };
17
18
-
19
- return item;
20
- });
21
-}
22
23
function format(logData) {
24
- return util.format.apply(util, wrapErrorsWithInspect(logData));
+ return util.format(...logData);
25
}
26
27
/**
0 commit comments