~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to daemons/librarian.tac

  • Committer: Julian Edwards
  • Date: 2011-12-09 12:55:05 UTC
  • mto: This revision was merged to the branch mainline in revision 14492.
  • Revision ID: julian.edwards@canonical.com-20111209125505-caqwcbppgfy9ekfw
fix some logging; TestBranchPuller still failing

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
from twisted.application import service, strports
13
13
from twisted.internet import reactor
14
14
from twisted.python import log
 
15
from twisted.scripts.twistd import ServerOptions
15
16
from twisted.web import server
16
17
 
17
18
from canonical.config import config, dbconfig
91
92
    setUpListener(uploadPort, webPort, restricted=True)
92
93
 
93
94
# Log OOPS reports
94
 
set_up_oops_reporting('librarian', 'librarian')
 
95
options = ServerOptions()
 
96
options.parseOptions()
 
97
logfile = options.get("logfile")
 
98
set_up_oops_reporting('librarian', 'librarian', logfile)
95
99
 
96
100
# Setup a signal handler to dump the process' memory upon 'kill -44'.
97
101
def sigdumpmem_handler(signum, frame):