~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead

  • Committer: Matt Nordhoff
  • Date: 2009-10-21 14:34:51 UTC
  • mfrom: (389.2.8 pep8-2009-10)
  • Revision ID: mnordhoff@mattnordhoff.com-20091021143451-zods0s068h7isect
A bunch of random PEP 8 and stylistic improvements. Also fix a typo on error pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
 
22
22
import logging
23
 
import logging.handlers
24
23
from optparse import OptionParser
25
24
import os
26
25
import sys
35
34
 
36
35
from loggerhead import daemon
37
36
from loggerhead.apps.config import Root
38
 
from loggerhead.trace import make_handler, setup_logging
 
37
from loggerhead.trace import setup_logging
39
38
from loggerhead.apps.error import ErrorHandlerApp
40
39
 
41
40
 
103
102
    if not options.foreground:
104
103
        sys.stderr.write('\n')
105
104
        sys.stderr.write('Launching loggerhead into the background.\n')
106
 
        sys.stderr.write('PID file: %s\n' % options.pidfile)
 
105
        sys.stderr.write('PID file: %s\n' % (options.pidfile,))
107
106
        sys.stderr.write('\n')
108
107
 
109
108
        daemon.daemonize(options.pidfile, home)