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

Commit

Permalink
Adjust logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Sep 15, 2016
1 parent 8c98791 commit 7e87aea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion pdcupdater/handlers/depchain/rpms.py
Expand Up @@ -201,7 +201,6 @@ def initialize(self, pdc):
# If switching to a new parent key, then issue bulk create
# statements for each parent
if parent != old_parent:
log.info("Bulk create: %i for %r" % (len(children), parent))
pdcupdater.utils.ensure_bulk_release_component_relationships_exists(
pdc, parent, children, component_type='rpm')
children = []
Expand Down
8 changes: 3 additions & 5 deletions pdcupdater/utils.py
Expand Up @@ -253,7 +253,7 @@ def ensure_bulk_release_component_relationships_exists(pdc, parent,
# Now issue a bulk create the missing ones.
log.info("Of %i, %i release-component-relationships missing." % (
len(children), len(absent)))
log.info(" Creating those %i now" % len(absent))
log.debug(absent_names)
pdc['release-component-relationships']._([dict(
from_component=dict(id=parent['id']),
to_component=dict(id=child['id']),
Expand All @@ -276,9 +276,8 @@ def ensure_bulk_release_components_exist(pdc, release, components,
absent = [name for name in components if name not in present]

# Now issue a bulk create the missing ones.
log.info("Of %i total needed, %i release-components missing." % (
log.info("Of %i needed, %i release-components missing." % (
len(components), len(absent)))
log.info(" Creating those %i now" % len(absent))
pdc['release-components']._([dict(
name=name,
global_component=name,
Expand All @@ -302,9 +301,8 @@ def ensure_bulk_global_components_exist(pdc, components):
absent = [name for name in components if name not in present]

# Now issue a bulk create the missing ones.
log.info("Of %i total needed, %i global-components missing." % (
log.info("Of %i needed, %i global-components missing." % (
len(components), len(absent)))
log.info(" Creating those %i now" % len(absent))
pdc['global-components']._([dict(name=name) for name in absent])


Expand Down

0 comments on commit 7e87aea

Please sign in to comment.