~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp_sitecustomize.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-03 17:08:40 UTC
  • mfrom: (14600.3.7 germinate-all-dev-series)
  • Revision ID: launchpad@pqm.canonical.com-20120103170840-qw8albc2cp5bk7ry
[r=wgrant][bug=904538] Let cron.germinate handle multiple dev series.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import zope.publisher.browser
20
20
from zope.security import checker
21
21
 
22
 
from lp.services.webapp.interfaces import IUnloggedException
23
22
from lp.services.log import loglevels
24
23
from lp.services.log.logger import LaunchpadLogger
25
24
from lp.services.log.mappingfilter import MappingFilter
26
25
from lp.services.log.nullhandler import NullHandler
27
26
from lp.services.mime import customizeMimetypes
 
27
from lp.services.webapp.interfaces import IUnloggedException
28
28
 
29
29
 
30
30
def add_custom_loglevels():
129
129
    filter_pattern = '.*(Zope 3.6|provide.*global site manager).*'
130
130
    warnings.filterwarnings(
131
131
        'ignore', filter_pattern, category=DeprecationWarning)
132
 
    # XXX wgrant 2010-03-30 bug=551510:
133
 
    # Also filter apt_pkg warnings, since Lucid's python-apt has a new API.
134
 
    warnings.filterwarnings(
135
 
        'ignore', '.*apt_pkg.*', category=DeprecationWarning)
136
132
 
137
133
 
138
134
def customize_logger():