diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-25 09:49:59 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-25 10:10:46 +0100 |
commit | cb5f4d0cad520629aecaa838ddf1e84d7265ff49 (patch) | |
tree | 833fef694eb1942fd7818303310e5647d7211e17 /lib/gitlab/checks/change_access.rb | |
parent | 084a8b6101c25e5d3d4f97f078abd9a649a2fb64 (diff) | |
download | gitlab-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.rb | 2 |
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) |