diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-07-06 18:14:22 +0200 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-07-06 18:14:22 +0200 |
commit | 0702abeb689f1f336a601ed005df19fa6f772516 (patch) | |
tree | 202b3c153e8f6c480d0d59b5a53fe8254f01c2bb | |
parent | 1449f69d95293dc1fee053587eb03d2381dbe4ad (diff) | |
download | gitlab-shell-0702abeb689f1f336a601ed005df19fa6f772516.tar.gz |
We need metrics logging
-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. |