Too aggressive character escaping when using --log-format json #3691
Labels
bug
evaluation needed
proposal needs to be validated or tested before fully implementing it in k6
triage
Brief summary
Situation:
Logs are used for analyzing and debugging our scripts and HTTP responses are therefore written to the log.
The log is very hard to read as html data is not human readable anymore when using
--log-format json
.Data:
--log-format json
to be able to parse the outputs. So we cannot use--log-format raw
.\
,"
and control codes (anything less than U+0020). Other characters like "<" and ">" as encoded as well to "\uxxxx" style, what blows up the whole output and makes it unreadable for ze human eyes.Expected Behavior:
Console logs are still readable for a human with IT background.
Reproduction of issue:
K6 Script:
Output with
--log-format json
;Output with
--log-format raw
;k6 version
v0.48.0
OS
windows
Docker version and image (if applicable)
n/a
Steps to reproduce the problem
see description
Expected behaviour
see description
Actual behaviour
see description
The text was updated successfully, but these errors were encountered: