Skip to content

Commit ef6c89d

Browse files
committed
Fix logger reference (must be self.trace)
1 parent 47fdea1 commit ef6c89d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ async def command_zen(self, update: Update, context: ContextTypes.DEFAULT_TYPE):
9292
)
9393

9494
async def welcome(self, update: Update, context):
95-
logger.info('Received new user event')
95+
self.trace('Received new user event')
9696
new_member = update.message.new_chat_members[0]
9797

9898
self.trace(f'Waiting {config.WELCOME_DELAY} seconds until user completes captcha...')
@@ -126,7 +126,7 @@ async def reply(self, update: Update, context: ContextTypes.DEFAULT_TYPE):
126126
msg = update.message.text
127127
reply_spec = utils.triggers_reply(msg) if msg else None
128128
if reply_spec is not None:
129-
logger.info(f'bot sends reply {reply_spec.reply}')
129+
self.trace(f'bot sends reply {reply_spec.reply}')
130130
await update.message.reply_text(reply_spec.reply)
131131
context.bot.send_message(
132132
chat_id=update.message.chat_id,

0 commit comments

Comments
 (0)