improvement: more logging
This commit is contained in:
parent
9439f2c183
commit
6e36081573
7 changed files with 26 additions and 11 deletions
|
@ -1,5 +1,6 @@
|
|||
use super::State;
|
||||
use crate::{pdu::PduBuilder, ConduitResult, Database, Error, Ruma};
|
||||
use log::info;
|
||||
use ruma::{
|
||||
api::client::{
|
||||
error::ErrorKind,
|
||||
|
@ -323,6 +324,8 @@ pub async fn create_room_route(
|
|||
db.rooms.set_public(&room_id, true)?;
|
||||
}
|
||||
|
||||
info!("{} created a room", sender_user);
|
||||
|
||||
db.flush().await?;
|
||||
|
||||
Ok(create_room::Response::new(room_id).into())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue