mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 15:02:51 +03:00
More logging switching
This commit is contained in:
parent
1b743e8b74
commit
1e3c2eee25
5 changed files with 32 additions and 27 deletions
|
@ -21,6 +21,7 @@ import sys
|
|||
import os
|
||||
import subprocess
|
||||
from optparse import OptionParser
|
||||
import logging
|
||||
import common
|
||||
|
||||
config = None
|
||||
|
@ -40,11 +41,11 @@ def main():
|
|||
config = common.read_config(options)
|
||||
|
||||
if len(args) != 1:
|
||||
print "Specify a single command"
|
||||
logging.critical("Specify a single command")
|
||||
sys.exit(1)
|
||||
|
||||
if args[0] != 'init' and args[0] != 'update':
|
||||
print "The only commands currently supported are 'init' and 'update'"
|
||||
logging.critical("The only commands currently supported are 'init' and 'update'")
|
||||
sys.exit(1)
|
||||
|
||||
serverwebroot = config['serverwebroot'].rstrip('/').replace('//', '/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue