mirror of
https://github.com/discourse/discourse.git
synced 2025-05-02 21:34:39 +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`