Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2011-02-11 19:57:01 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2013-02-03 12:59:25 (GMT)
commitf3444b937fa67efae57d951fec177773ecc7f30c (patch)
tree502b9defe4ae227fe91edf541a68ea04d02e41ca
parent03e2dc3c91416f86bdb202592cd603fdd1052420 (diff)
Patchwork integration: add some logging
-rw-r--r--lib/patchwork.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/patchwork.rb b/lib/patchwork.rb
index 43aef79..e85e737 100644
--- a/lib/patchwork.rb
+++ b/lib/patchwork.rb
@@ -42,8 +42,12 @@ module Patchwork
begin
patch_id = find_patch patchwork, project_id, summary, find_state_ids
- next if patch_id.nil?
+ if patch_id.nil?
+ logger.info "No matching patch for commit #{commit_id} found on Patchwork"
+ next
+ end
update_patch patchwork, patch_id, commit_id, set_state_id
+ logger.info "Updated patchwork patch #{patch_id}"
rescue Exception => e
logger.warn("Failed to update Patchwork: #{e}")
end