Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Commit

Permalink
Some logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Sep 12, 2016
1 parent d748b05 commit f518728
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pdcupdater/handlers/depchain/rpms.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def handle(self, pdc, msg):
pdcupdater.utils.ensure_release_exists(pdc, release_id, release)

name = msg['msg']['name']
build_id = msg['msg']['build_id']
parent = pdcupdater.utils.ensure_release_component_exists(
pdc, release_id, name)

Expand All @@ -114,8 +115,10 @@ def handle(self, pdc, msg):
# First, go through all of the relationships that we learn from koji,
# and add them to PDC. Some may already be present, but we may add new
# ones here.
log.info("Gathering relationships from koji for %r" % build_id)
koji_relationships = list(self.get_koji_relationships_from_build(
self.koji_url, msg['msg']['build_id']))
self.koji_url, build_id))
log.info("Ensuring PDC relations are in place for %r" % build_id)
for relationship_type, child_name in koji_relationships:
child = pdcupdater.utils.ensure_release_component_exists(
pdc, release_id, child_name)
Expand All @@ -127,6 +130,7 @@ def handle(self, pdc, msg):
# relationships that are no longer relevant.
# In order to do that, first build two easily comparable lists.

log.info("Pruning dropped relationships for %r" % build_id)
# Here's the first. We re-format the koji_relationships list.
koji_relationships = [
(
Expand Down

0 comments on commit f518728

Please sign in to comment.