Skip to content

[ws-manager & image-builder-mk3] status is logged as string, instead of object #14219

@kylos101

Description

@kylos101

⚠️ Be careful the status object contains sensitive information

Bug description

Status is logged as string, instead of a JSON object. We can find and read this easy enough, but, we cannot select child values to filter by or present on the summary.

Refer to jsonPayload.status in this example.

Steps to reproduce

  1. Log an error here
  2. View the log in Stackdriver for your preview environment

Workspace affected

No response

Expected behavior

Try changing the files altered here, so that status is an well formed JSON object, instead of a string.

This might be a side effect of the log redaction that we have to live with. 🤷

Example repository

No response

Anything else?

In this, we redacted the object, but output log as a base64 encoded string - which is not able to be easily searched and read in Stackdriver.

In this, we output the string object, so its easily searched and read, but not organized or filtered in Stackdriver.

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions