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

We need metrics logging

parent 1449f69d
...@@ -133,9 +133,11 @@ class GitlabShell ...@@ -133,9 +133,11 @@ class GitlabShell
end end
args_string = [File.basename(executable), *args].join(' ') args_string = [File.basename(executable), *args].join(' ')
GitlabMetrics.meature(File.basename(executable)) do
$logger.info "gitlab-shell: executing git command <#{args_string}> for #{log_username}." $logger.info "gitlab-shell: executing git command <#{args_string}> for #{log_username}."
exec_cmd(executable, *args) 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.
def exec_cmd(*args) def exec_cmd(*args)
......
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