mirror of
https://github.com/discourse/discourse.git
synced 2025-04-23 06:04:26 +08:00

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`