From bc2790fd4d477610e909a1f8346c9e4f718c4140 Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 19 Apr 2024 09:16:55 +0200 Subject: [PATCH] cleaner logs --- src/model/logbook.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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