Fixed a couple of bugs with daemon and serve commands
This commit is contained in:
parent
a6f11b9744
commit
55c0e2ca95
2 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"]),
|
||||
|
|
|
|||
Loading…
Reference in a new issue