Skip to content
Snippets Groups Projects
Verified Commit 47a95754 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Log group creation and removal

parent 7bab4817
No related branches found
No related tags found
No related merge requests found
Loading
@@ -101,10 +101,14 @@ class Group < Namespace
Loading
@@ -101,10 +101,14 @@ class Group < Namespace
end end
   
def post_create_hook def post_create_hook
Gitlab::AppLogger.info("Group \"#{name}\" was created")
system_hook_service.execute_hooks_for(self, :create) system_hook_service.execute_hooks_for(self, :create)
end end
   
def post_destroy_hook def post_destroy_hook
Gitlab::AppLogger.info("Group \"#{name}\" was removed")
system_hook_service.execute_hooks_for(self, :destroy) system_hook_service.execute_hooks_for(self, :destroy)
end end
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment