Skip to content

logr.Marshaler: does not handle non-string results #343

@pohly

Description

@pohly

/kind bug

What steps did you take and what happened:

I wrote a MarshalLog implementation which returns a slice. klog called the function, but then logged the original value instead of the one returned by MarshaLog.

What did you expect to happen:

writeStringValue(b, false, fmt.Sprintf("%+v", v))
should log value, not v.

Metadata

Metadata

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions