Skip to content

Commit

Permalink
Let's just keep doing this
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwalker committed Feb 5, 2024
1 parent 8b4b985 commit de5693d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
# - name: Setup Rust
# uses: dtolnay/rust-toolchain@stable
# with:
# components: clippy, rustfmt
- name: Setup Rust
run: rustup toolchain install stable --profile minimal --no-self-update --component clippy
- name: Set up Rust cache
Expand Down Expand Up @@ -55,6 +59,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
# - name: Setup Rust
# uses: dtolnay/rust-toolchain@stable
- name: Setup Rust
run: rustup toolchain install ${{ matrix.rust }} --profile minimal --no-self-update
- name: Set up Rust cache
Expand Down Expand Up @@ -84,6 +90,6 @@ jobs:
working-directory: e2e
browser: chrome
# See https://github.com/cypress-io/github-action/issues/482
start: env RUST_LOG="movies_rust_bolt=debug,tower_http=debug,info" ../target/release/movies-rust-bolt
start: sh -c '../target/release/movies-rust-bolt'
wait-on: 'http://localhost:8080/index.html'

5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ async fn main() -> Result<()> {
color_eyre::install()?;

tracing_subscriber::registry()
.with(EnvFilter::try_from_default_env().unwrap_or_else(|_| "info".into()))
.with(
EnvFilter::try_from_default_env()
.unwrap_or_else(|_| "movies_rust_bolt=debug,tower_http=debug,info".into()),
)
.with(tracing_subscriber::fmt::layer())
.with(ErrorLayer::default())
.init();
Expand Down

0 comments on commit de5693d

Please sign in to comment.