Skip to content

Commit 4ab9055

Browse files
lorenzo132StephenDaDev
authored andcommitted
Resolve git requests.
1 parent 2c7019f commit 4ab9055

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

core/thread.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,7 @@ async def snooze(self, moderator=None, command_used=None, snooze_for=None):
261261
{"channel_id": str(self.channel.id)},
262262
{"$set": {"snoozed": True, "snooze_data": self.snooze_data}},
263263
)
264-
import logging
265-
266-
logging.info(f"[SNOOZE] DB update result: {result.modified_count}")
264+
logger.info("[SNOOZE] DB update result: %s", result.modified_count)
267265

268266
# Dispatch thread_snoozed event for plugins
269267
self.bot.dispatch("thread_snoozed", self, moderator, snooze_for)
@@ -729,9 +727,7 @@ async def _ensure_genesis(force: bool = False):
729727
"$unset": {"snoozed": "", "snooze_data": ""},
730728
},
731729
)
732-
import logging
733-
734-
logging.info(f"[UNSNOOZE] DB update result: {result.modified_count}")
730+
logger.info("[UNSNOOZE] DB update result: %s", result.modified_count)
735731
# Notify in the configured channel
736732
notify_channel = self.bot.config.get("unsnooze_notify_channel") or "thread"
737733
notify_text = self.bot.config.get("unsnooze_text") or "This thread has been unsnoozed and restored."

0 commit comments

Comments
 (0)