Skip to content

Commit ad7b2b8

Browse files
authored
fix: maintain original log structure (#3656)
1 parent c9bbc13 commit ad7b2b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/artillery/lib/console-capture.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function setupConsoleCapture() {
4545
orig.apply(console, args);
4646

4747
if (currentSize < MAX_RETAINED_LOG_SIZE) {
48-
outputLines = outputLines.concat(args);
48+
outputLines = outputLines.concat([args]);
4949
for (const x of args) {
5050
currentSize += String(x).length;
5151
}
@@ -70,7 +70,7 @@ function setupConsoleCapture() {
7070
orig.apply(console, args);
7171

7272
if (currentSize < MAX_RETAINED_LOG_SIZE) {
73-
outputLines = outputLines.concat(args);
73+
outputLines = outputLines.concat([args]);
7474
for (const x of args) {
7575
currentSize += String(x).length;
7676
}

0 commit comments

Comments
 (0)