~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Gavin Panella
  • Date: 2011-09-28 11:31:49 UTC
  • mto: This revision was merged to the branch mainline in revision 14064.
  • Revision ID: gavin.panella@canonical.com-20110928113149-xj6aweuzqy35o94o
Silence the amqplib logger globally, not just for scripts.

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