def main():
args = docopt(__doc__, version='0.1')
debug = args["--debug"]
verbose = args["--verbose"]
if not os.path.exists("log"):
os.makedirs("log")
configure_logging("log/lama_api.log", debug=debug, verbose=verbose)
cmd_line = "COMMAND : "+" ".join(sys.argv)
logging.info(cmd_line)
try:
Lamadb.create_db()
LamaFtp.create_ftp()
run_api(debug=debug)
except KeyboardInterrupt:
Analyzer.stop_analyzer()
评论列表
文章目录