Skip to content

No colours but escape chars in case of HTTP tracing #135

@mdeknowis

Description

@mdeknowis

Hello,

we are creating our own bx plugin. We use the Http logging according
https://github.com/IBM-Cloud/ibm-cloud-cli-sdk/blob/master/docs/plugin_developer_guide.md#41-http-tracing

But we realized, that instead of colors, we see escaped control bytes.
The normal logging coloring is working (Warn, Fatal...)

---- SNIP ---
Retrieving...

[1;39mREQUEST:[0m [2018-06-21T13:51:50+02:00]
POST /auth/realms/integration/protocol/openid-connect/token HTTP/1.1
Host: myhost.net
Content-Type: application/x-www-form-urlencoded

...

[1;39mRESPONSE:[0m [2018-06-21T13:51:51+02:00] [1;39mElapsed:[0m 416ms
HTTP/1.1 200 OK
Content-Length: 2501
...

[1;39mREQUEST:[0m [2018-06-21T13:51:51+02:00]
POST /api/r HTTP/1.1
...

[1;39mRESPONSE:[0m [2018-06-21T13:51:51+02:00] [1;39mElapsed:[0m 64ms
HTTP/1.1 401
...
--- SNAP ---

Regards,
Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions