logger: change from warn to warning

This commit is contained in:
Hay1tsme
2023-08-08 10:17:56 -04:00
parent 2e277e7791
commit 88a1462304
42 changed files with 168 additions and 167 deletions

View File

@@ -169,7 +169,7 @@ class WaccaItemData(BaseData):
result = self.execute(sql)
if result is None:
self.logger.warn(f"Failed to delete ticket id {id}")
self.logger.warning(f"Failed to delete ticket id {id}")
return None
def get_trophies(self, user_id: int, season: int = None) -> Optional[List[Row]]:

View File

@@ -218,7 +218,7 @@ class WaccaProfileData(BaseData):
result = self.execute(sql)
if result is None:
self.logger.warn(
self.logger.warning(
f"update_profile_dan: Failed to update! profile {profile_id}"
)
return None

View File

@@ -294,7 +294,7 @@ class WaccaScoreData(BaseData):
result = self.execute(conflict)
if result is None:
self.logger.warn(
self.logger.warning(
f"put_stageup: failed to update! user_id: {user_id} version: {version} stage_id: {stage_id}"
)
return None

View File

@@ -63,7 +63,7 @@ class WaccaStaticData(BaseData):
result = self.execute(conflict)
if result is None:
self.logger.warn(f"Failed to insert music {song_id} chart {chart_id}")
self.logger.warning(f"Failed to insert music {song_id} chart {chart_id}")
return None
return result.lastrowid