Skip to content

console.log() prints twice #5430

@dbonchev42

Description

@dbonchev42

Brief summary

console.log() prints twice

k6 version

1.4.0 - commit/a9f9e3b28a, go1.25.4

OS

Ubuntu 20.04.6

Docker version and image (if applicable)

No response

Steps to reproduce the problem

Run a k6 script with console.log()

const string = 'str';
console.log(string);

export default function () {

}

Expected behaviour

Printed once in the console

Actual behaviour

Printed twice in the console

...
     scenarios: (100.00%) 1 scenario, 1 max VUs, 10m30s max duration (incl. graceful stop):
              * default: 1 iterations for each of 1 VUs (maxDuration: 10m0s, gracefulStop: 30s)

INFO[0000] str                                           source=console
INFO[0000] str                                           source=console


  █ TOTAL RESULTS 

    EXECUTION
...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions