Skip to content

Commit

Permalink
refactor: forward
Browse files Browse the repository at this point in the history
  • Loading branch information
hongcha98 committed Jan 21, 2024
1 parent 7c136af commit 577e66b
Show file tree
Hide file tree
Showing 10 changed files with 644 additions and 445 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ rust-embed = { version = "8.0.0", features = ["axum-ex"] }
prometheus = "0.13.3"
lazy_static = "1.4.0"
thiserror = "1"
md5 = "0.7.0"

# cargo install cargo-deb
# Reference: https://github.com/kornelski/cargo-deb
Expand Down
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ fn default_log() -> Log {
}

fn default_log_level() -> String {
env::var("LOG_LEVEL").unwrap_or_else(|_|
env::var("LOG_LEVEL").unwrap_or_else(|_| {
if cfg!(debug_assertions) {
"debug".to_string()
} else {
"info".to_string()
}
)
})
}

#[derive(Debug, Clone, Deserialize, Serialize)]
Expand Down
Loading

0 comments on commit 577e66b

Please sign in to comment.