diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2017-08-25 12:15:27 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-02-28 20:34:03 +0100 |
commit | d7448f161fd2730b1238285d5f1c8fc72d31b099 (patch) | |
tree | 206dd840f6529b2047433a4cf887d7376940b6e4 /lib | |
parent | bc76062774f01208403685965f4d780da4e03ebb (diff) | |
download | gitlab-ce-d7448f161fd2730b1238285d5f1c8fc72d31b099.tar.gz |
Merge branch 'zj-improve-object-store-rake-task' into 'master'
Use proper logging for artifacts rake task
See merge request !2762
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/artifacts.rake | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/tasks/gitlab/artifacts.rake b/lib/tasks/gitlab/artifacts.rake index e079177eb3f..53514490d59 100644 --- a/lib/tasks/gitlab/artifacts.rake +++ b/lib/tasks/gitlab/artifacts.rake @@ -1,3 +1,5 @@ +require 'logger' + desc "GitLab | Migrate files for artifacts to comply with new storage format" namespace :gitlab do namespace :artifacts do @@ -11,9 +13,10 @@ namespace :gitlab do begin build.artifacts_file.migrate!(ArtifactUploader::REMOTE_STORE) build.artifacts_metadata.migrate!(ArtifactUploader::REMOTE_STORE) - print '.' - rescue - print 'F' + + logger.info("Transferred artifacts of #{build.id} of #{build.artifacts_size} to object storage") + rescue => e + logger.error("Failed to transfer artifacts of #{build.id} with error: #{e.message}") end end end |