diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-07-07 17:34:28 +0200 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-07-07 17:34:28 +0200 |
commit | 1d7b7d881da96169ae99cf868200e478dfde7c8f (patch) | |
tree | 0d9e34cee14eafab6d6baafebbf73b566e7c9b89 | |
parent | 154edf889275a064242bb2a4c913813079224668 (diff) | |
download | gitlab-shell-1d7b7d881da96169ae99cf868200e478dfde7c8f.tar.gz |
metrics makes no sense because 'exec'
-rw-r--r-- | lib/gitlab_shell.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb index 9d92088..e71b418 100644 --- a/lib/gitlab_shell.rb +++ b/lib/gitlab_shell.rb @@ -133,10 +133,8 @@ class GitlabShell end args_string = [File.basename(executable), *args].join(' ') - GitlabMetrics.measure(File.basename(executable)) do - $logger.info "gitlab-shell: executing git command <#{args_string}> for #{log_username}." - exec_cmd(executable, *args) - end + $logger.info "gitlab-shell: executing git command <#{args_string}> for #{log_username}." + exec_cmd(executable, *args) end # This method is not covered by Rspec because it ends the current Ruby process. |