@@ -253,7 +251,7 @@ class GitlabShell # rubocop:disable Metrics/ClassLength
returnfalseunless@config.git_trace_log_file
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
end
...
...
@@ -261,7 +259,7 @@ class GitlabShell # rubocop:disable Metrics/ClassLength
File.open(@config.git_trace_log_file,'a'){nil}
returntrue
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")