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 30601bb commit f9f3b89Copy full SHA for f9f3b89
extension/interceptor.ts
@@ -162,7 +162,7 @@ function interceptConsole() {
162
if (!currentContext) return;
163
164
log(`Console ${type}`, JSON.stringify(args));
165
- const message = args?.shift();
+ const [message, ...rest] = args ?? [];
166
167
const key = `Function#${
168
process.env[envVariableNames.SSPY_FUNCTION_NAME]
@@ -174,7 +174,7 @@ function interceptConsole() {
174
console: {
175
type,
176
message,
177
- optionalParams: args,
+ optionalParams: rest,
178
},
179
});
180
0 commit comments