fixed logging twice same action and added group to log message

This commit is contained in:
miloszowi 2021-10-14 20:40:35 +02:00
parent e0916441b9
commit cd0712a07b
2 changed files with 1 additions and 2 deletions

View File

@ -30,7 +30,6 @@ class StartHandler(AbstractHandler):
) )
Replier.html(update, start_text, markup) Replier.html(update, start_text, markup)
Logger.action(self.inbound, self.action)
def is_group_specific(self) -> bool: def is_group_specific(self) -> bool:
return False return False

View File

@ -58,4 +58,4 @@ class Logger:
@staticmethod @staticmethod
def action(inbound: InboundMessage, action: str) -> None: def action(inbound: InboundMessage, action: str) -> None:
Logger.info(f'User {inbound.username}({inbound.user_id}) called {action.upper()} for {inbound.chat_id}') Logger.info(f'User {inbound.username}({inbound.user_id}) called {action.upper()} for {inbound.chat_id}({inbound.group_name})')