Skip to content

ObjectMarshaler produces invalid JSON #110

@hisorange

Description

@hisorange

Hey there!

In case the error provided to the logger is an ObjectMarshaler then the produced JSON will be invalid, as the current code is opens up the "error": key, then it calls the marshaller which cannot interact with the buffer and the outcome is going to be something like this:

  "goid": 1,
  "error": ,

log/logger.go

Line 946 in 5f01506

o.MarshalObject(e)

Have a nice day!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions