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(log): warn() and others behave different depending on import #5972

Open
iuioiua opened this issue Sep 13, 2024 · 0 comments · May be fixed by #5974
Open

bug(log): warn() and others behave different depending on import #5972

iuioiua opened this issue Sep 13, 2024 · 0 comments · May be fixed by #5974
Labels
bug Something isn't working log

Comments

@iuioiua
Copy link
Collaborator

iuioiua commented Sep 13, 2024

Executing warn(), if imported from @std/log, prints to the console. However, when imported from @std/log/warn, it doesn't print anything. I think this is because setup() is executed, as it's included in @std/log, but not executed as it's excluded from @std/log/warn. I believe the fix is to add import "@std/log/setup" to warn() and its sibling functions, like info(), etc.

@iuioiua iuioiua added bug Something isn't working log labels Sep 13, 2024
@iuioiua iuioiua linked a pull request Sep 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working log
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant