From 6eadec73e8df43ae7bbedf0ef26acc88f88859ae Mon Sep 17 00:00:00 2001 From: Xiretza Date: Tue, 18 Jul 2023 20:19:39 +0000 Subject: [PATCH] Log once bot is logged in --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index dd1fa37..0e88d31 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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? } }