fix(aurora): removed some logging statements

This commit is contained in:
Seaswimmer 2024-06-04 15:52:23 -04:00
parent ff66006b8a
commit 720e100a20
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F
2 changed files with 0 additions and 4 deletions

View file

@ -4,7 +4,6 @@ from typing import Literal, Optional
from redbot.core.bot import Red
from ..utilities.logger import logger
from .base import AuroraBaseModel
from .partials import PartialUser
@ -29,10 +28,8 @@ class Change(AuroraBaseModel):
@classmethod
def from_dict(cls, bot: Red, data: dict) -> "Change":
logger.verbose("Creating Change from dict (%s): %s", type(data), data)
if isinstance(data, str):
data = json.loads(data)
logger.verbose("Change data was a string, converted to dict: %s", data)
if "duration" in data and data["duration"] and not isinstance(data["duration"], timedelta):
hours, minutes, seconds = map(int, data["duration"].split(':'))
duration = timedelta(hours=hours, minutes=minutes, seconds=seconds)

View file

@ -162,7 +162,6 @@ class Moderation(AuroraGuildModel):
@classmethod
def from_dict(cls, bot: Red, data: dict) -> "Moderation":
logger.verbose("Creating Moderation from dict (%s): %s", type(data), data)
return cls(bot=bot, **data)
@classmethod