提交 e364a852 编写于 作者: J Jeroen van Baarsen

Call every service, even if one fails

When one service fails, we dont want to have all of them failing. This
fixes this problem by catching all the errors, and writing them to the
error log.

Fixes: #5803
Signed-off-by: NJeroen van Baarsen <jeroenvanbaarsen@gmail.com>
上级 d1e424bd
......@@ -391,7 +391,11 @@ class Project < ActiveRecord::Base
services.each do |service|
# Call service hook only if it is active
service.execute(data) if service.active
begin
service.execute(data) if service.active
rescue => e
logger.error(e)
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册