~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/code-import-worker-monitor.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-12 22:33:38 UTC
  • mfrom: (14446.1.13 detailed-gpg-exceptions)
  • Revision ID: launchpad@pqm.canonical.com-20111212223338-qba9dvcxyj38e3f3
[r=allenap][bug=798957,
        901498] 1. Add extra debugging to Poppy GPG failures. 2. Fix an OOPS
        logging problem that caused Poppy to infinitely loop logging
        OOPSes when initially logging an error. This also affects the Puller,
        Importds and the librarian as they now get a proper rotatable log file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
    def __init__(self, name, dbuser=None, test_args=None):
38
38
        LaunchpadScript.__init__(self, name, dbuser, test_args)
39
 
        set_up_oops_reporting(name, 'codeimportworker', mangle_stdout=True)
 
39
        # The logfile changes its name according to the code in
 
40
        # CodeImportDispatcher, so we pull it from the command line
 
41
        # options.
 
42
        set_up_oops_reporting(
 
43
            self.name, 'codeimportworker', logfile=self.options.log_file)
40
44
 
41
45
    def add_my_options(self):
42
46
        """See `LaunchpadScript`."""