diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2019-07-05 08:57:26 -0500 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-07-10 10:45:40 -0500 |
commit | 1345a954ded8e10dba182b6ea3e823bc234947a9 (patch) | |
tree | b17a7d036488a9207dae8d3ead94f26a27bbf022 /app/models/ssh_host_key.rb | |
parent | b76d4fadd4be35141df659b5ab2ba99b21c79ead (diff) | |
download | gitlab-ce-1345a954ded8e10dba182b6ea3e823bc234947a9.tar.gz |
Add a rubocop for Rails.logger54102-add-rubocop-for-rails-logger
Suggests to use a JSON structured log instead
Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
Diffstat (limited to 'app/models/ssh_host_key.rb')
-rw-r--r-- | app/models/ssh_host_key.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ssh_host_key.rb b/app/models/ssh_host_key.rb index b6fb39ee81f..9bd35d30845 100644 --- a/app/models/ssh_host_key.rb +++ b/app/models/ssh_host_key.rb @@ -106,7 +106,7 @@ class SshHostKey if status.success? && !errors.present? { known_hosts: known_hosts } else - Rails.logger.debug("Failed to detect SSH host keys for #{id}: #{errors}") + Rails.logger.debug("Failed to detect SSH host keys for #{id}: #{errors}") # rubocop:disable Gitlab/RailsLogger { error: 'Failed to detect SSH host keys' } end |