Skip to content

Commit

Permalink
Merge pull request #6 from z9fr/feature/develop/fav-icons-security
Browse files Browse the repository at this point in the history
feat: setup env_logger to view logs
  • Loading branch information
ebadfd authored Jan 1, 2024
2 parents 9f10d09 + f4e16cd commit f5cd1b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ edition = "2021"
axum = "0.6.20"
color-eyre = "0.6.2"
dotenv = "0.15.0"
env_logger = "0.9.0"
log = "0.4.20"
tokio = { version = "1", features = ["full"] }
serde = { version = "1", features = ["derive"] }
Expand Down
1 change: 1 addition & 0 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ primary_region = "sin"

[env]
PORT = "8080"
RUST_LOG= "site=trace"

[metrics]
port = 8080
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ fn csp_header(_: &Response) -> Option<header::HeaderValue> {

pub async fn run_server() -> Result<()> {
dotenv().ok();
env_logger::try_init().ok();
color_eyre::install()?;
info!("starting the application");

Expand Down

0 comments on commit f5cd1b0

Please sign in to comment.