mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-02-16 16:39:46 +03:00
fix: set logging var, only if one is not provided
This commit is contained in:
parent
8ec5122f87
commit
61729c5fae
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,9 @@ pub type AppData = actix_web::web::Data<ArcData>;
|
|||
async fn main() -> std::io::Result<()> {
|
||||
use std::time::Duration;
|
||||
|
||||
env::set_var("RUST_LOG", "info");
|
||||
if env::var("RUST_LOG").is_err() {
|
||||
env::set_var("RUST_LOG", "info");
|
||||
}
|
||||
|
||||
pretty_env_logger::init();
|
||||
info!(
|
||||
|
|
Loading…
Add table
Reference in a new issue