init pretty_env_logger

This commit is contained in:
Akulij 2025-04-30 19:21:00 +03:00
parent 0d4e2a8fcd
commit 88360c91ca

View File

@ -116,6 +116,7 @@ impl std::fmt::Display for BotError {
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> { async fn main() -> Result<(), Box<dyn std::error::Error>> {
dotenvy::dotenv()?; dotenvy::dotenv()?;
pretty_env_logger::init();
let config = Config::init_from_env()?; let config = Config::init_from_env()?;
let mut bc = BotController::new(&config).await?; let mut bc = BotController::new(&config).await?;