discourse/plugins/automation/app/models/discourse_automation
Joffrey JAFFEUX 01ce003b8e
FIX: logs time even when automation raises (#32254)
The previous code could attempt to log a `nil` `run_time` if the block
would raise an exception. This commit adds two safeguards:

- rescue any exception to still compute `run_time`
- defaults to `0` if we still don't have any `run_time`
2025-04-10 11:05:53 +02:00
..
automation.rb FEATURE: Add automation statistics tracking to Automation (#31921) 2025-03-21 12:53:26 +11:00
field.rb FEATURE: Add automation statistics tracking to Automation (#31921) 2025-03-21 12:53:26 +11:00
pending_automation.rb FEATURE: Add automation statistics tracking to Automation (#31921) 2025-03-21 12:53:26 +11:00
pending_pm.rb FEATURE: Add automation statistics tracking to Automation (#31921) 2025-03-21 12:53:26 +11:00
stat.rb FIX: logs time even when automation raises (#32254) 2025-04-10 11:05:53 +02:00
user_global_notice.rb FEATURE: Add automation statistics tracking to Automation (#31921) 2025-03-21 12:53:26 +11:00