Skip to content

Commit

Permalink
error str
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Sep 20, 2024
1 parent 9746610 commit eb526b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,5 @@ class AlreadyPreRegisteredError(UsersBaseError):


class BillingDetailsNotFoundError(UsersBaseError):
def log_msg(self):
return "Billing details are missing for user_id={user_id}. TIP: Check whether this user is pre-registered".format(
**self.__dict__
)
# NOTE: this is for internal log and should not be transmitted to the final user
msg_template = "Billing details are missing for user_id={user_id}. TIP: Check whether this user is pre-registered"
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async def wrapper(request: web.Request) -> web.StreamResponse:

_logger.exception(
"%s [%s]",
exc.log_msg(),
f"{exc}",
f"{error_code}",
extra={"error_code": error_code, **log_extra},
)
Expand Down

0 comments on commit eb526b3

Please sign in to comment.