Log group creation and removal

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-06-03 16:15:58 +02:00
parent 7bab4817f7
commit 47a95754de
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -101,10 +101,14 @@ class Group < Namespace
end
def post_create_hook
Gitlab::AppLogger.info("Group \"#{name}\" was created")
system_hook_service.execute_hooks_for(self, :create)
end
def post_destroy_hook
Gitlab::AppLogger.info("Group \"#{name}\" was removed")
system_hook_service.execute_hooks_for(self, :destroy)
end