Log once bot is logged in
This commit is contained in:
parent
8f0c762637
commit
6eadec73e8
1 changed files with 3 additions and 1 deletions
|
@ -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?
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue