Skip to content

console.[fn].bind instead of console.[fn].call in logger #616

@ajfranzoia

Description

@ajfranzoia

I was trying to find out the root cause of metadata not being attached to fields and I wasn't receiving any logging from the lib.
I found out that the AutoMapperLogger.warn method was being effectively called but nothing was output to stdout.

I think the root cause is using bind instead of call inside of the logger methods, is this done on purpose?

console.log.bind(console, this.AUTOMAPPER_PREFIX, message);

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