diff --git a/bot_z/cli.py b/bot_z/cli.py index 7aef71c..a9620a0 100644 --- a/bot_z/cli.py +++ b/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"]) 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: fifo.write(cmd_marshal(name=name, cmd="stop")) logger.info("Stop sent.") @@ -274,7 +274,7 @@ def login_command( logger.debug("Sending the login command down the pipe: %s", ctx.obj["fifo"]) 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: fifo.write( 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"]) 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: fifo.write(cmd_marshal(name=name, cmd="logout", force=force)) 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"]) 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: fifo.write(cmd_marshal(name=name, cmd="checkin", force=force)) 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"]) 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: fifo.write(cmd_marshal(name=name, cmd="checkout", force=force)) logger.info("Check out sent.")