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

fix(cargo-shuttle): don't override user provided RUST_LOG on local run #1930

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jonaro00
Copy link
Member

Description of change

Fixes RUST_LOG override in shuttle run reported in https://discord.com/channels/803236282088161321/1318703796007735306

How has this been tested? (if applicable)

Local run with RUST_LOG=trace now shows trace!() logs from the user code.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR modifies the logging configuration to respect user-defined RUST_LOG environment variables during local runs, preventing unwanted overrides of custom logging preferences.

  • Modified runtime/src/start.rs to use different default log levels for beta ('info') vs non-beta ('info,shuttle=trace') environments
  • Updated cargo-shuttle/src/lib.rs to preserve user-provided RUST_LOG values instead of overriding them
  • Added conditional RUST_LOG setting that only applies in debug mode when user hasn't defined their own value

2 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile

runtime/src/start.rs Show resolved Hide resolved
cargo-shuttle/src/lib.rs Show resolved Hide resolved
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