summaryrefslogtreecommitdiff
path: root/lib/gitlab/checks/change_access.rb
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-10-25 09:49:59 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-10-25 10:10:46 +0100
commitcb5f4d0cad520629aecaa838ddf1e84d7265ff49 (patch)
tree833fef694eb1942fd7818303310e5647d7211e17 /lib/gitlab/checks/change_access.rb
parent084a8b6101c25e5d3d4f97f078abd9a649a2fb64 (diff)
downloadgitlab-ce-cb5f4d0cad520629aecaa838ddf1e84d7265ff49.tar.gz
Refactors TimedLogger to be more OOP compliant
Adds a #full_message method so that external classes do not have access to the state of the logger. Adds a #append_message to always append to the array in-place
Diffstat (limited to 'lib/gitlab/checks/change_access.rb')
-rw-r--r--lib/gitlab/checks/change_access.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/checks/change_access.rb b/lib/gitlab/checks/change_access.rb
index 52a72de3b15..7036ae9191d 100644
--- a/lib/gitlab/checks/change_access.rb
+++ b/lib/gitlab/checks/change_access.rb
@@ -47,7 +47,7 @@ module Gitlab
@protocol = protocol
@logger = logger
- @logger.log << "Running checks for ref: #{@branch_name || @tag_name}"
+ @logger.append_message("Running checks for ref: #{@branch_name || @tag_name}")
end
def exec(skip_commits_check: false)