From 0702abeb689f1f336a601ed005df19fa6f772516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Thu, 6 Jul 2017 18:14:22 +0200 Subject: We need metrics logging --- lib/gitlab_shell.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/gitlab_shell.rb') 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. -- cgit v1.2.1