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