diff options
-rw-r--r-- | lib/gitlab_shell.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb index 190f4dd..ceef95a 100644 --- a/lib/gitlab_shell.rb +++ b/lib/gitlab_shell.rb @@ -133,8 +133,10 @@ class GitlabShell end args_string = [File.basename(executable), *args].join(' ') - $logger.info "gitlab-shell: executing git command <#{args_string}> for #{log_username}." - exec_cmd(executable, *args) + GitlabMetrics.meature(File.basename(executable)) do + $logger.info "gitlab-shell: executing git command <#{args_string}> for #{log_username}." + exec_cmd(executable, *args) + end end # This method is not covered by Rspec because it ends the current Ruby process. |