From 699804f945008669f7badeb9094f4ca448c43233 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 26 Jul 2018 09:02:34 +0200 Subject: [PATCH] Added logger if ticket got deleted via trigger. --- app/models/ticket.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/ticket.rb b/app/models/ticket.rb index 8c8db6eee..88a2933ce 100644 --- a/app/models/ticket.rb +++ b/app/models/ticket.rb @@ -858,6 +858,7 @@ perform changes on ticket if key == 'ticket.action' next if value['value'].blank? next if value['value'] != 'delete' + logger.debug { "Deleted ticket from #{perform_origin} #{perform.inspect} Ticket.find(#{id})" } destroy! next end