Commit e364a852 authored by Jeroen van Baarsen's avatar Jeroen van Baarsen
Browse files

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: default avatarJeroen van Baarsen <jeroenvanbaarsen@gmail.com>
parent 9e70562741ea
......@@ -391,7 +391,11 @@ def execute_services(data)
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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment