Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ajfranzoia opened this issue Apr 25, 2024 · 0 comments
Open

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

ajfranzoia opened this issue Apr 25, 2024 · 0 comments

Comments

@ajfranzoia
Copy link

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);

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

No branches or pull requests

1 participant