def main(): dct = docopt(__doc__) # set logger level to info logger.setLevel(logging.INFO) if dct["start"]: lilac_daemon.start() elif dct["stop"]: lilac_daemon.stop() elif dct["restart"]: lilac_daemon.restart() else: exit(__doc__)
def main(): dct = docopt(__doc__) # set logger level to info logger.setLevel(logging.INFO) if dct["start"]: lilac_daemon.start() elif dct["stop"]: lilac_daemon.stop() elif dct["restart"]: lilac_daemon.restart() elif dct["status"]: lilac_daemon.status() else: exit(__doc__)
def run(self): logger.setLevel(logging.ERROR) server.run(True, 8888) logger.setLevel(logging.INFO)