Call the logger correctly

This commit is contained in:
Jesse Keating 2007-11-28 22:14:20 -05:00 committed by Jesse Keating
parent 1c6ac68a59
commit 1116fcc4b0

View File

@ -325,11 +325,11 @@ class Gather(pypungi.PungiBase):
probs = self.ayum.downloadPkgs(polist)
if len(probs.keys()) > 0:
self.log.error("Errors were encountered while downloading packages.")
self.logger.error("Errors were encountered while downloading packages.")
for key in probs.keys():
errors = yum.misc.unique(probs[key])
for error in errors:
self.log.error("%s: %s" % (key, error))
self.logger.error("%s: %s" % (key, error))
sys.exit(1)
for po in polist: