@@ -253,7 +251,7 @@ class GitlabShell # rubocop:disable Metrics/ClassLength
...
@@ -253,7 +251,7 @@ class GitlabShell # rubocop:disable Metrics/ClassLength
returnfalseunless@config.git_trace_log_file
returnfalseunless@config.git_trace_log_file
ifPathname(@config.git_trace_log_file).relative?
ifPathname(@config.git_trace_log_file).relative?
$logger.warn"gitlab-shell: is configured to trace git commands with #{@config.git_trace_log_file.inspect} but an absolute path needs to be provided"
$logger.warn('git trace log path must be absolute, ignoring',git_trace_log_file: @config.git_trace_log_file)
returnfalse
returnfalse
end
end
...
@@ -261,7 +259,7 @@ class GitlabShell # rubocop:disable Metrics/ClassLength
...
@@ -261,7 +259,7 @@ class GitlabShell # rubocop:disable Metrics/ClassLength
File.open(@config.git_trace_log_file,'a'){nil}
File.open(@config.git_trace_log_file,'a'){nil}
returntrue
returntrue
rescue=>ex
rescue=>ex
$logger.warn"gitlab-shell: is configured to trace git commands with #{@config.git_trace_log_file.inspect} but it's not possible to write in that path #{ex.message}"
$logger.warn('Failed to open git trace log file',git_trace_log_file: @config.git_trace_log_file,error: ex.to_s)
with("gitlab-shell: is configured to trace git commands with #{git_trace_log_file.inspect} but it's not possible to write in that path Permission denied")