From 26b9b2e4d9827a776b3bccf88fddacf37c8bae23 Mon Sep 17 00:00:00 2001 From: Thomas Rusiecki Date: Mon, 9 Dec 2024 18:38:09 -0300 Subject: [PATCH] added logging for user property creation --- device/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/device/views.py b/device/views.py index 98fcd0f..751b8ef 100644 --- a/device/views.py +++ b/device/views.py @@ -187,6 +187,11 @@ class AddUserPropertyView(DashboardView, CreateView): form.instance.type = Property.Type.USER messages.success(self.request, _("User property successfully added.")) + + device_logger.info( + f"Created user property (key='{form.instance.key}', value='{form.instance.value}') by user {self.request.user}, for evidence uuid: {self.property.uuid}." + ) + response = super().form_valid(form) return response