Skip to content

Commit

Permalink
Replace log.warn with log.warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wookie184 authored and supakeen committed Jan 7, 2024
1 parent 885edbb commit 3c866b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/pinnwand/handler/api_deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async def get(self, slug: str) -> None: # type: ignore
session.delete(paste)
session.commit()

log.warn(
log.warning(
"Show.get: paste was expired, is your cronjob running?"
)

Expand Down
2 changes: 1 addition & 1 deletion src/pinnwand/handler/api_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async def get(self, slug: str) -> None:
session.delete(paste)
session.commit()

log.warn(
log.warning(
"Show.get: paste was expired, is your cronjob running?"
)

Expand Down
14 changes: 7 additions & 7 deletions src/pinnwand/handler/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ async def get(self, slug: str) -> None: # type: ignore
session.delete(paste)
session.commit()

log.warn(
log.warning(
"Show.get: paste was expired, is your cronjob running?"
)

Expand Down Expand Up @@ -344,7 +344,7 @@ async def get(self, slug: str) -> None: # type: ignore
session.delete(paste)
session.commit()

log.warn(
log.warning(
"RedirectShow.get: paste was expired, is your cronjob running?"
)

Expand Down Expand Up @@ -376,7 +376,7 @@ async def get(self, file_id: str) -> None: # type: ignore
session.delete(file.paste)
session.commit()

log.warn(
log.warning(
"FileRaw.get: paste was expired, is your cronjob running?"
)

Expand Down Expand Up @@ -409,7 +409,7 @@ async def get(self, file_id: str) -> None: # type: ignore
session.delete(file.paste)
session.commit()

log.warn(
log.warning(
"FileRaw.get: paste was expired, is your cronjob running?"
)

Expand Down Expand Up @@ -442,7 +442,7 @@ async def get(self, paste_id: str) -> None: # type: ignore
session.delete(paste)
session.commit()

log.warn(
log.warning(
"FileRaw.get: paste was expired, is your cronjob running?"
)

Expand Down Expand Up @@ -491,7 +491,7 @@ async def get(self, file_id: str) -> None: # type: ignore
session.delete(file.paste)
session.commit()

log.warn(
log.warning(
"FileDownload.get: paste was expired, is your cronjob running?"
)

Expand Down Expand Up @@ -537,7 +537,7 @@ async def get(self, removal: str) -> None: # type: ignore
session.delete(paste)
session.commit()

log.warn(
log.warning(
"Remove.get: paste was expired, is your cronjob running?"
)

Expand Down

0 comments on commit 3c866b4

Please sign in to comment.