Skip to content

Commit

Permalink
Git::LocalRepository.repository_name uses log_failure instead of call…
Browse files Browse the repository at this point in the history
…ing logger directly
  • Loading branch information
anmarchenko committed Apr 5, 2024
1 parent 17743bf commit f9a6d5c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/datadog/ci/git/local_repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ def self.repository_name
@repository_name = last_path_segment.gsub(".git", "") if last_path_segment
@repository_name ||= current_folder_name
rescue => e
Datadog.logger.debug(
"Unable to get git remote: #{e.class.name} #{e.message} at #{Array(e.backtrace).first}"
)
log_failure(e, "git repository name")
@repository_name = current_folder_name
end

Expand Down

0 comments on commit f9a6d5c

Please sign in to comment.