~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead

  • Committer: Jelmer Vernooij
  • Date: 2008-08-06 18:57:18 UTC
  • mto: (197.1.9 pathargs)
  • mto: This revision was merged to the branch mainline in revision 203.
  • Revision ID: jelmer@samba.org-20080806185718-efa83xkvq6q921cp
Fix syntax.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    return h
45
45
 
46
46
 
47
 
def setup_logging(logdir, config, foreground):
 
47
def setup_logging(log_folder, config, foreground):
48
48
    # i hate that stupid logging config format, so just set up logging here.
49
49
 
50
50
    if not os.path.exists(log_folder):
85
85
    parser.add_option('-C', '--check', action='store_true', dest='check', default=False,
86
86
                      help="only start if not already running (useful for cron jobs)")
87
87
    parser.add_option('-p', '--pidfile', dest="pidfile", default=default_pidfile,
88
 
                      help="override pidfile location")
 
88
                      type=str, help="override pidfile location")
89
89
    parser.add_option('-c', '--config-file', dest="configfile", default=default_configfile,
90
 
                      help="override configuration file location")
91
 
    parser.add_option('-L', '--log-folder', dest="log-folder", default=default_log_folder,
92
 
                      help="override log file directory")
 
90
                                          type=str, help="override configuration file location")
 
91
    parser.add_option('-L', '--log-folder', dest="log_folder", default=default_log_folder,
 
92
                      type=str, help="override log file directory")
93
93
    options, args = parser.parse_args()
94
94
    if len(args) > 0:
95
95
        parser.error('No filename arguments are used, only options.')