diff --git a/src/model/logbook.rs b/src/model/logbook.rs index 9ccae27..5d83f12 100644 --- a/src/model/logbook.rs +++ b/src/model/logbook.rs @@ -591,7 +591,7 @@ ORDER BY departure DESC } pub async fn delete(&self, db: &SqlitePool, user: &User) -> Result<(), LogbookDeleteError> { - Log::create(db, format!("{user:?} deleted trip: {self:?}")).await; + Log::create(db, format!("{} deleted trip: {self:?}", user.name)).await; if user.has_role(db, "admin").await || user.has_role(db, "Vorstand").await