~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to cronscripts/supermirror-pull.py

MergedĀ mainline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
from optparse import OptionParser
7
7
 
8
8
from twisted.internet import defer, reactor
 
9
from twisted.python import log as tplog
9
10
 
 
11
from canonical.codehosting.puller import mirror, scheduler
10
12
from canonical.launchpad.interfaces import BranchType
11
13
from canonical.launchpad.scripts import logger_options
12
14
from canonical.twistedsupport.loggingsupport import set_up_logging_for_script
16
18
 
17
19
 
18
20
def shutdown_with_errors(failure):
19
 
    log.err(failure)
 
21
    tplog.err(failure)
20
22
    failure.printTraceback()
21
23
    reactor.stop()
22
24