From 434503e9a98c43e902e81266675d78994e1670a6 Mon Sep 17 00:00:00 2001 From: profitroll Date: Sun, 28 May 2023 11:43:45 +0200 Subject: [PATCH] Improved logging --- classes/pyroclient.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/classes/pyroclient.py b/classes/pyroclient.py index b2d25ea..96316b4 100644 --- a/classes/pyroclient.py +++ b/classes/pyroclient.py @@ -216,16 +216,17 @@ class PyroClient(Client): return for command_set in command_sets: + logger.info( + "Registering command set with commands %s and scope '%s' (%s)", + command_set.commands, + command_set.scope, + command_set.language_code, + ) await self.set_bot_commands( command_set.commands, command_set.scope, language_code=command_set.language_code, ) - logger.info( - "Registering command set with commands %s and scope '%s'", - command_set.commands, - command_set.scope, - ) async def remove_commands(self, command_sets: Union[List[CommandSet], None] = None): """Remove commands stored in bot's 'commands' attribute""" @@ -239,8 +240,9 @@ class PyroClient(Client): for command_set in command_sets: logger.info( - "Removing command set with scope '%s'", + "Removing command set with scope '%s' (%s)", command_set.scope, + command_set.language_code, ) await self.delete_bot_commands( command_set.scope,