Log once bot is logged in

This commit is contained in:
Xiretza 2023-07-18 20:19:39 +00:00
parent 8f0c762637
commit 6eadec73e8

View file

@ -9,7 +9,7 @@ use clap::Parser as _;
use color_eyre::{eyre::Context, Result}; use color_eyre::{eyre::Context, Result};
use matrix_sdk::Session; use matrix_sdk::Session;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use tracing::instrument; use tracing::{instrument, event, Level};
use xdg::BaseDirectories; use xdg::BaseDirectories;
mod bot; mod bot;
@ -126,6 +126,8 @@ async fn main() -> Result<()> {
.wrap_err("Failed to load bot configuration")?; .wrap_err("Failed to load bot configuration")?;
let bot = Bot::new(config).await?; let bot = Bot::new(config).await?;
event!(Level::INFO, "logged in successfully, starting bot");
bot.run().await? bot.run().await?
} }
} }