~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/bug-import.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2009-06-18 14:27:54 UTC
  • mfrom: (8657.3.7 bug-importer-cleanup)
  • Revision ID: launchpad@pqm.canonical.com-20090618142754-23ynd7epmog6202b
[r=allenap][ui=none] The BugImporter script will now log correctly to
        stdout. Previously this script used a logger that meant its
        output never appeared on stdout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
from canonical.config import config
11
11
from canonical.launchpad.interfaces import IProductSet
12
12
 
 
13
from lp.bugs.scripts.bugimport import BugImporter
13
14
from lp.services.scripts.base import LaunchpadScript
14
 
from canonical.launchpad.scripts.bugimport import BugImporter
15
15
 
16
16
 
17
17
class BugImportScript(LaunchpadScript):
56
56
            self.parser.error('Product %s does not exist'
57
57
                              % self.options.product)
58
58
 
59
 
        importer = BugImporter(product, bugs_filename,
60
 
                               self.options.cache_filename,
61
 
                               verify_users=self.options.verify_users)
 
59
        importer = BugImporter(
 
60
            product, bugs_filename, self.options.cache_filename,
 
61
            verify_users=self.options.verify_users, logger=self.logger)
62
62
        importer.importBugs(self.txn)
63
63
        config.pop('send_email_data')
64
64