Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service: Log exceptions in more cases #371

Merged
merged 1 commit into from
Sep 8, 2023
Merged

Conversation

bkeryan
Copy link
Collaborator

@bkeryan bkeryan commented Sep 8, 2023

What does this Pull Request accomplish?

Update logging exception handlers to pass the exception to _CallLogger.close() so it can be logged.

Why should this Pull Request be merged?

Partial fix for #370

The part that isn't fixed: when the client calls measurement_service.context.abort(...), this always logs UNKNOWN regardless of the gRPC status code that the client specified. This happens because ServerContext.abort() raises an empty Exception rather than a RpcError containing the gRPC status code and details: https://github.com/grpc/grpc/blob/master/src/python/grpcio/grpc/_server.py#L392

What testing has been done?

Manually tested with nifgen_standard_waveform

@github-actions
Copy link

github-actions bot commented Sep 8, 2023

Test Results

     12 files  ±0       12 suites  ±0   1m 56s ⏱️ -1s
   184 tests ±0     159 ✔️ ±0    25 💤 ±0  0 ±0 
2 196 runs  ±0  1 896 ✔️ ±0  300 💤 ±0  0 ±0 

Results for commit ff1e95e. ± Comparison against base commit 92a2b97.

@bkeryan bkeryan merged commit aeeb4d9 into main Sep 8, 2023
@bkeryan bkeryan deleted the users/bkeryan/error-logging branch September 8, 2023 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants