Fixed a couple of bugs with daemon and serve commands

This commit is contained in:
Gina Häußge 2015-10-27 18:13:00 +01:00
parent a6f11b9744
commit 55c0e2ca95
2 changed files with 1 additions and 2 deletions

View file

@ -129,6 +129,7 @@ def init_logging(settings, use_logging_file=True, logging_file=None, default_con
config = default_config
# configure logging globally
import logging.config
logging.config.dictConfig(config)
# make sure we log any warnings

View file

@ -63,8 +63,6 @@ def serve_command(obj, host, port, logging, allow_root):
help="Specify the port on which to bind the server.")
@click.option("--logging", type=click.Path(),
help="Specify the config file to use for configuring logging.")
@click.option("--debug", "-d", is_flag=True,
help="Enable debug mode")
@click.option("--iknowwhatimdoing", "allow_root", is_flag=True,
help="Allow OctoPrint to run as user root.")
@click.argument("command", type=click.Choice(["start", "stop", "restart"]),