summaryrefslogtreecommitdiff
path: root/app/models/ssh_host_key.rb
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2019-07-05 08:57:26 -0500
committerMayra Cabrera <mcabrera@gitlab.com>2019-07-10 10:45:40 -0500
commit1345a954ded8e10dba182b6ea3e823bc234947a9 (patch)
treeb17a7d036488a9207dae8d3ead94f26a27bbf022 /app/models/ssh_host_key.rb
parentb76d4fadd4be35141df659b5ab2ba99b21c79ead (diff)
downloadgitlab-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.rb2
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