~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead

  • Committer: Martin Albisetti
  • Date: 2009-06-03 23:09:47 UTC
  • mto: This revision was merged to the branch mainline in revision 361.
  • Revision ID: martin.albisetti@canonical.com-20090603230947-1o6wabzmxnh9znq0
Add deprectation warning to start-loggerhead

Show diffs side-by-side

added added

removed removed

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