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<()> {
|
async fn main() -> std::io::Result<()> {
|
||||||
use std::time::Duration;
|
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();
|
pretty_env_logger::init();
|
||||||
info!(
|
info!(
|
||||||
|
|
Loading…
Reference in a new issue