diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-26 16:01:24 +0200 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 15:46:04 +0200 |
commit | 7f7e93a34471f673ac3888549c67bce4e763300e (patch) | |
tree | 0a8aaba288d2fd56b0e46b15c0fd5aba60fb854d /app/workers | |
parent | f1ccecc9979e3091e7cf54f98508f6bc7c01a7f5 (diff) | |
download | gitlab-ce-7f7e93a34471f673ac3888549c67bce4e763300e.tar.gz |
remove log statements from workers
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/create_gpg_signature_worker.rb | 8 | ||||
-rw-r--r-- | app/workers/invalid_gpg_signature_update_worker.rb | 4 |
2 files changed, 3 insertions, 9 deletions
diff --git a/app/workers/create_gpg_signature_worker.rb b/app/workers/create_gpg_signature_worker.rb index 6fbd6e1a3f3..4f47717ff69 100644 --- a/app/workers/create_gpg_signature_worker.rb +++ b/app/workers/create_gpg_signature_worker.rb @@ -5,15 +5,11 @@ class CreateGpgSignatureWorker def perform(commit_sha, project_id) project = Project.find_by(id: project_id) - unless project - return Rails.logger.error("CreateGpgSignatureWorker: couldn't find project with ID=#{project_id}, skipping job") - end + return unless project commit = project.commit(commit_sha) - unless commit - return Rails.logger.error("CreateGpgSignatureWorker: couldn't find commit with commit_sha=#{commit_sha}, skipping job") - end + return unless commit commit.signature end diff --git a/app/workers/invalid_gpg_signature_update_worker.rb b/app/workers/invalid_gpg_signature_update_worker.rb index c0bec3c9689..db6b1ea8e8d 100644 --- a/app/workers/invalid_gpg_signature_update_worker.rb +++ b/app/workers/invalid_gpg_signature_update_worker.rb @@ -5,9 +5,7 @@ class InvalidGpgSignatureUpdateWorker def perform(gpg_key_id) gpg_key = GpgKey.find_by(id: gpg_key_id) - unless gpg_key - return Rails.logger.error("InvalidGpgSignatureUpdateWorker: couldn't find gpg_key with ID=#{gpg_key_id}, skipping job") - end + return unless gpg_key Gitlab::Gpg::InvalidGpgSignatureUpdater.new(gpg_key).run end |