Skip to content

Commit

Permalink
feat: update the log level of deserialization exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
badayvedat committed Nov 3, 2023
1 parent 2a40192 commit f56a120
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/isolate/connections/grpc/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,9 @@ def execute_function(
# depickling is basically involves code execution from the *user*.
function = from_grpc(function)
except SerializationError:
trace = traceback.format_exc()
yield from self.log(trace)
yield from self.log(traceback.format_exc(), level=LogLevel.ERROR)
raise AbortException(
f"The {function_kind} function could not be deserialized.\n"
f"{trace}"
f"The {function_kind} function could not be deserialized."
)

if not callable(function):
Expand Down

0 comments on commit f56a120

Please sign in to comment.