Skip to content

CategoryImpl does not pass down arguments in a correct way #93

@jkorrek

Description

@jkorrek

When I was looking at updating to the new major version I noticed a somewhat unexpected behaviour when using the category style logger.

I noticed, that the "args" always seemed to be wrapped into an additional array.
For example logging with a single argument { a: 1 } would be passed to my log channel as [ [ { a: 1 } ] ].

As far as I can tell, this is related to CategoryImpl, which is not using a spread operator when passing args to the actual logger.
Changing the code like this fixes the issue for me

I would be happy to provide a pull request with these changes.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions