Fix logging error.
This commit is contained in:
parent
91c2cc4717
commit
11785bc1e2
10
bot_z/cli.py
10
bot_z/cli.py
|
@ -210,7 +210,7 @@ def stop_command(ctx: click.Context, name: T.Optional[str]) -> None:
|
||||||
"""
|
"""
|
||||||
logger.debug("Sending the stop command down the pipe: %s", ctx.obj["fifo"])
|
logger.debug("Sending the stop command down the pipe: %s", ctx.obj["fifo"])
|
||||||
name = _check_name(ctx.obj["lifo"], name)
|
name = _check_name(ctx.obj["lifo"], name)
|
||||||
logging.info("Stopping instance: %s", name)
|
logger.info("Stopping instance: %s", name)
|
||||||
with open(ctx.obj["fifo"], "w") as fifo:
|
with open(ctx.obj["fifo"], "w") as fifo:
|
||||||
fifo.write(cmd_marshal(name=name, cmd="stop"))
|
fifo.write(cmd_marshal(name=name, cmd="stop"))
|
||||||
logger.info("Stop sent.")
|
logger.info("Stop sent.")
|
||||||
|
@ -274,7 +274,7 @@ def login_command(
|
||||||
|
|
||||||
logger.debug("Sending the login command down the pipe: %s", ctx.obj["fifo"])
|
logger.debug("Sending the login command down the pipe: %s", ctx.obj["fifo"])
|
||||||
name = _check_name(ctx.obj["lifo"], name)
|
name = _check_name(ctx.obj["lifo"], name)
|
||||||
logging.info('Logging in on instance "%s" with username "%s".', name, username)
|
logger.info('Logging in on instance "%s" with username "%s".', name, username)
|
||||||
with open(ctx.obj["fifo"], "w") as fifo:
|
with open(ctx.obj["fifo"], "w") as fifo:
|
||||||
fifo.write(
|
fifo.write(
|
||||||
cmd_marshal(
|
cmd_marshal(
|
||||||
|
@ -304,7 +304,7 @@ def logout_command(ctx: click.Context, name: T.Optional[str], force: bool) -> No
|
||||||
"""
|
"""
|
||||||
logger.debug("Sending the logout command down the pipe: %s", ctx.obj["fifo"])
|
logger.debug("Sending the logout command down the pipe: %s", ctx.obj["fifo"])
|
||||||
name = _check_name(ctx.obj["lifo"], name)
|
name = _check_name(ctx.obj["lifo"], name)
|
||||||
logging.info("Logging out on instance: %s", name)
|
logger.info("Logging out on instance: %s", name)
|
||||||
with open(ctx.obj["fifo"], "w") as fifo:
|
with open(ctx.obj["fifo"], "w") as fifo:
|
||||||
fifo.write(cmd_marshal(name=name, cmd="logout", force=force))
|
fifo.write(cmd_marshal(name=name, cmd="logout", force=force))
|
||||||
logger.info("Logout sent.")
|
logger.info("Logout sent.")
|
||||||
|
@ -326,7 +326,7 @@ def checkin_command(ctx: click.Context, name: T.Optional[str], force: bool) -> N
|
||||||
"""
|
"""
|
||||||
logger.debug("Sending the check in command down the pipe: %s", ctx.obj["fifo"])
|
logger.debug("Sending the check in command down the pipe: %s", ctx.obj["fifo"])
|
||||||
name = _check_name(ctx.obj["lifo"], name)
|
name = _check_name(ctx.obj["lifo"], name)
|
||||||
logging.info("Checking in on instance: %s", name)
|
logger.info("Checking in on instance: %s", name)
|
||||||
with open(ctx.obj["fifo"], "w") as fifo:
|
with open(ctx.obj["fifo"], "w") as fifo:
|
||||||
fifo.write(cmd_marshal(name=name, cmd="checkin", force=force))
|
fifo.write(cmd_marshal(name=name, cmd="checkin", force=force))
|
||||||
logger.info("Check in sent.")
|
logger.info("Check in sent.")
|
||||||
|
@ -348,7 +348,7 @@ def checkout_command(ctx: click.Context, name: T.Optional[str], force: bool) ->
|
||||||
"""
|
"""
|
||||||
logger.debug("Sending the check out command down the pipe: %s", ctx.obj["fifo"])
|
logger.debug("Sending the check out command down the pipe: %s", ctx.obj["fifo"])
|
||||||
name = _check_name(ctx.obj["lifo"], name)
|
name = _check_name(ctx.obj["lifo"], name)
|
||||||
logging.info("Checking out on instance: %s", name)
|
logger.info("Checking out on instance: %s", name)
|
||||||
with open(ctx.obj["fifo"], "w") as fifo:
|
with open(ctx.obj["fifo"], "w") as fifo:
|
||||||
fifo.write(cmd_marshal(name=name, cmd="checkout", force=force))
|
fifo.write(cmd_marshal(name=name, cmd="checkout", force=force))
|
||||||
logger.info("Check out sent.")
|
logger.info("Check out sent.")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user