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

Bug: function type log arguments are printed as null #69

Closed
pke opened this issue Nov 29, 2022 · 3 comments
Closed

Bug: function type log arguments are printed as null #69

pke opened this issue Nov 29, 2022 · 3 comments

Comments

@pke
Copy link
Contributor

pke commented Nov 29, 2022

This cost me more than an hour of debugging now.

function test() {
}

logger.info(test)

will log null which is confusing. It should log function or the functions name.

@alessandro-bottamedi
Copy link
Collaborator

alessandro-bottamedi commented Nov 29, 2022

You are right, in my opinion it should print an empty object:"{}" or [function], printing null or the name of the object could be confusing....

@pke
Copy link
Contributor Author

pke commented Nov 29, 2022

console.log prints the type (and name): function name()

@alessandro-bottamedi
Copy link
Collaborator

Fixed in 592e139

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

2 participants