youjizz
This commit is contained in:
@@ -32,8 +32,10 @@ async fn main() -> std::io::Result<()> {
|
||||
dotenv().ok();
|
||||
|
||||
// Enable request logging
|
||||
unsafe {
|
||||
std::env::set_var("RUST_LOG", "warn");
|
||||
if std::env::var("RUST_LOG").is_err() {
|
||||
unsafe{
|
||||
std::env::set_var("RUST_LOG", "warn");
|
||||
}
|
||||
}
|
||||
env_logger::init(); // You need this to actually see logs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user