~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/scripts/base.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-28 21:23:27 UTC
  • mfrom: (14061.2.1 silence-amqplib-logger)
  • Revision ID: launchpad@pqm.canonical.com-20110928212327-ej3fmwcfd3fd6hrw
[r=danilo][no-qa] Silence the amqplib logger globally.

Show diffs side-by-side

added added

removed removed

Lines of Context:
321
321
            isolation = 'read_committed'
322
322
        self._init_zca(use_web_security=use_web_security)
323
323
        self._init_db(isolation=isolation)
324
 
        self._init_logging()
325
324
 
326
325
        # XXX wgrant 2011-09-24 bug=29744: initZopeless used to do this.
327
326
        # Should be called directly by scripts that actually need it.
368
367
        dbconfig.override(dbuser=dbuser, isolation_level=isolation)
369
368
        self.txn = transaction
370
369
 
371
 
    def _init_logging(self):
372
 
        # Suppress debug messages from amqplib.
373
 
        logging.getLogger("amqplib").setLevel(logging.INFO)
374
 
 
375
370
    def record_activity(self, date_started, date_completed):
376
371
        """Hook to record script activity."""
377
372