Skip to content

cache: add a few more fields to ref trace logs.#3905

Merged
tonistiigi merged 1 commit intomoby:masterfrom
sipsma:even-more-logs
May 29, 2023
Merged

cache: add a few more fields to ref trace logs.#3905
tonistiigi merged 1 commit intomoby:masterfrom
sipsma:even-more-logs

Conversation

@sipsma
Copy link
Copy Markdown
Collaborator

@sipsma sipsma commented May 25, 2023

The trace logs now also include the pointer value of the ref, which serves as its "ID" amongst all the refs for the underlying record.

They also now include equal{Mutable,Immutable} IDs, which are otherwise hard to determine with the Usage API.

Finally, LazyStackTrace now has a MarshalText method which returns the same value as the existing String method. This allows it to work with custom logrus hooks that rely on marshaling the fields.

The trace logs now also include the pointer value of the ref, which
serves as its "ID" amongst all the refs for the underlying record.

They also now include equal{Mutable,Immutable} IDs, which are otherwise
hard to determine with the Usage API.

Finally, LazyStackTrace now has a MarshalText method which returns the
same value as the existing String method. This allows it to work with
custom logrus hooks that rely on marshaling the fields.

Signed-off-by: Erik Sipsma <erik@sipsma.dev>
@sipsma sipsma requested a review from tonistiigi May 25, 2023 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants