Skip to content

Commit

Permalink
chore: log error
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Dec 17, 2023
1 parent 2d562e9 commit 98831a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rpc/timeline_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def Hello(self, request: HelloRequest, context) -> HelloResponse:
print(f"{config.node_id} rpc hello {request.name}")
return HelloResponse(message=f"{config.node_id}: hello {request.name}")

@logger.catch(reraise=True)
def SubjectCollect(
self, request: SubjectCollectRequest, context: RpcContext
) -> SubjectCollectResponse:
Expand Down Expand Up @@ -150,6 +151,7 @@ def create_subject_collection_timeline(
)
)

@logger.catch(reraise=True)
def EpisodeCollect(
self, req: EpisodeCollectRequest, context
) -> EpisodeCollectResponse:
Expand Down Expand Up @@ -258,6 +260,7 @@ def EpisodeCollect(

return EpisodeCollectResponse(ok=True)

@logger.catch(reraise=True)
def SubjectProgress(
self, req: SubjectProgressRequest, context
) -> SubjectProgressResponse:
Expand Down

0 comments on commit 98831a0

Please sign in to comment.