fix(aurora): added debug logging
This commit is contained in:
parent
a4e11fd828
commit
8d1a57165d
1 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,7 @@ class Moderation(AuroraGuildModel):
|
||||||
))
|
))
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
|
||||||
logger.info("Updated moderation case %s in guild %s with the following data:\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",
|
logger.info("Row updated in moderation_%s!\n%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s",
|
||||||
self.moderation_id,
|
self.moderation_id,
|
||||||
self.guild_id,
|
self.guild_id,
|
||||||
self.timestamp.timestamp(),
|
self.timestamp.timestamp(),
|
||||||
|
@ -277,6 +277,7 @@ class Change(AuroraBaseModel):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls, bot: Red, data: dict) -> "Change":
|
def from_dict(cls, bot: Red, data: dict) -> "Change":
|
||||||
|
logger.debug("Creating Change from dict: %s", data)
|
||||||
if "duration" in data and data["duration"] and not isinstance(data["duration"], timedelta):
|
if "duration" in data and data["duration"] and not isinstance(data["duration"], timedelta):
|
||||||
hours, minutes, seconds = map(int, data["duration"].split(':'))
|
hours, minutes, seconds = map(int, data["duration"].split(':'))
|
||||||
duration = timedelta(hours=hours, minutes=minutes, seconds=seconds)
|
duration = timedelta(hours=hours, minutes=minutes, seconds=seconds)
|
||||||
|
|
Loading…
Reference in a new issue