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

feat: make baml-cli log::info by default #929

Merged
merged 5 commits into from
Sep 9, 2024
Merged

feat: make baml-cli log::info by default #929

merged 5 commits into from
Sep 9, 2024

Conversation

sxlijin
Copy link
Collaborator

@sxlijin sxlijin commented Sep 9, 2024

So that baml-cli serve and baml-cli generate produce useful output by default.

We can't do this out of the box with env_logger because neither it nor log allow swapping out the default logging implementation; we'd have to implement our own mutable wrapper around env_logger::Logger that allows swapping out the default filter_or fallback setting, and that's too much work for right now.

Also fix error handling for baml-cli serve, which is a terribly hodge podge of dynamic lookup logic and inconsistent wiring.

Copy link

vercel bot commented Sep 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
baml ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 9, 2024 7:51pm

@sxlijin sxlijin changed the title Sam/minor fixes feat: make baml-cli log::info by default Sep 9, 2024
@sxlijin sxlijin merged commit 1e698d1 into canary Sep 9, 2024
8 checks passed
@sxlijin sxlijin deleted the sam/minor-fixes branch September 9, 2024 19:50
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

Successfully merging this pull request may close these issues.

1 participant