Commit 0702abeb authored by Kim "BKC" Carlbäcker's avatar Kim "BKC" Carlbäcker

We need metrics logging

parent 1449f69d
...@@ -133,8 +133,10 @@ class GitlabShell ...@@ -133,8 +133,10 @@ class GitlabShell
end end
args_string = [File.basename(executable), *args].join(' ') args_string = [File.basename(executable), *args].join(' ')
$logger.info "gitlab-shell: executing git command <#{args_string}> for #{log_username}." GitlabMetrics.meature(File.basename(executable)) do
exec_cmd(executable, *args) $logger.info "gitlab-shell: executing git command <#{args_string}> for #{log_username}."
exec_cmd(executable, *args)
end
end end
# This method is not covered by Rspec because it ends the current Ruby process. # This method is not covered by Rspec because it ends the current Ruby process.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment