Skip to content

Commit 44af92b

Browse files
committed
Chore: Remove unused args in debug log
1 parent ecd03c0 commit 44af92b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/utils/src/debug.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ export const log = (
1818
{
1919
namespace = '',
2020
data = undefined,
21-
group = false,
22-
collapsed = true,
2321
timestamp = false,
2422
format = 'standard',
2523
consoleMethod = null,
@@ -42,7 +40,7 @@ export const log = (
4240
}
4341

4442
// Format message based on options
45-
let logArgs = [];
43+
const logArgs = [];
4644
let logFormat = '';
4745

4846
// JSON output
@@ -52,7 +50,7 @@ export const log = (
5250
level,
5351
namespace,
5452
message,
55-
data,
53+
...(data?.length) ? { data } : {},
5654
});
5755
return;
5856
}

0 commit comments

Comments
 (0)