Fix logging errors
This commit is contained in:
parent
c8d7afd480
commit
d36a2d6555
1 changed files with 2 additions and 2 deletions
4
wtf.py
4
wtf.py
|
|
@ -100,7 +100,7 @@ class Wtf:
|
|||
explanation = match_add.group(2).strip()
|
||||
await self.db.add(term, explanation, message.sender.nick)
|
||||
await room.send(f"Added explanation: {term} — {explanation}", message.mid)
|
||||
logger.INFO(f"{mention(message.sender.nick)} added explanation: {term} - {explanation}")
|
||||
logger.info(f"{mention(message.sender.nick)} added explanation: {term} - {explanation}")
|
||||
|
||||
elif match_detail:
|
||||
term = match_detail.group(1)
|
||||
|
|
@ -115,7 +115,7 @@ class Wtf:
|
|||
aid = match_delete.group(1)
|
||||
await self.db.delete(aid)
|
||||
await room.send(f"Deleted.", message.mid)
|
||||
logger.INFO(f"{mention(message.sender.nick)} deleted explanation with id {aid}")
|
||||
logger.info(f"{mention(message.sender.nick)} deleted explanation with id {aid}")
|
||||
|
||||
else:
|
||||
text = "Usage:\n" + self.COMMANDS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue