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

@@ -192,7 +192,7 @@ class WaccaBase:
else:
profile = self.data.profile.get_profile(req.userId)
if profile is None:
self.logger.warn(
self.logger.warning(
f"Unknown user id {req.userId} attempted login from {req.chipId}"
)
return resp.make()
@@ -282,7 +282,7 @@ class WaccaBase:
profile = self.data.profile.get_profile(req.userId)
if profile is None:
self.logger.warn(f"Unknown profile {req.userId}")
self.logger.warning(f"Unknown profile {req.userId}")
return resp.make()
self.logger.info(f"Get detail for profile {req.userId}")
@@ -709,7 +709,7 @@ class WaccaBase:
profile = self.data.profile.get_profile(req.profileId)
if profile is None:
self.logger.warn(
self.logger.warning(
f"handle_user_music_update_request: No profile for game_id {req.profileId}"
)
return resp.make()
@@ -1003,7 +1003,7 @@ class WaccaBase:
profile = self.data.profile.get_profile(req.profileId)
if profile is None:
self.logger.warn(
self.logger.warning(
f"handle_user_vip_get_request no profile with ID {req.profileId}"
)
return BaseResponse().make()

View File

@@ -146,7 +146,7 @@ class WaccaServlet:
self.logger.debug(req_json)
if not hasattr(self.versions[internal_ver], func_to_find):
self.logger.warn(
self.logger.warning(
f"{req_json['appVersion']} has no handler for {func_to_find}"
)
resp = BaseResponse().make()

View File

@@ -157,7 +157,7 @@ class WaccaLily(WaccaS):
else:
profile = self.data.profile.get_profile(req.userId)
if profile is None:
self.logger.warn(
self.logger.warning(
f"Unknown user id {req.userId} attempted login from {req.chipId}"
)
return resp.make()
@@ -198,7 +198,7 @@ class WaccaLily(WaccaS):
profile = self.data.profile.get_profile(req.userId)
if profile is None:
self.logger.warn(f"Unknown profile {req.userId}")
self.logger.warning(f"Unknown profile {req.userId}")
return resp.make()
self.logger.info(f"Get detail for profile {req.userId}")

View File

@@ -41,7 +41,7 @@ class WaccaReader(BaseReader):
def read_music(self, base_dir: str, table: str) -> None:
if not self.check_valid_pair(base_dir, table):
self.logger.warn(
self.logger.warning(
f"Cannot find {table} uasset/uexp pair at {base_dir}, music will not be read"
)
return

View File

@@ -58,7 +58,7 @@ class WaccaReverse(WaccaLilyR):
profile = self.data.profile.get_profile(req.userId)
if profile is None:
self.logger.warn(f"Unknown profile {req.userId}")
self.logger.warning(f"Unknown profile {req.userId}")
return resp.make()
self.logger.info(f"Get detail for profile {req.userId}")

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