-
-
Notifications
You must be signed in to change notification settings - Fork 17
Fixes #130 #134
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
Fixes #130 #134
Conversation
Codecov ReportAttention:
📢 Thoughts on this report? Let us know! |
ddaspit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Enkidu93)
src/SIL.Machine.AspNetCore/Services/CancellationInterceptor.cs line 27 at r1 (raw file):
{ _logger.LogInformation(exception: ex, message: null); return null;
Does this mean that the gRPC endpoint won't return a CANCELLED status code?
After: It returns a cancelled status code (which is wasn't before) and gets filtered on the other end. The notable difference is that it is logged as info rather than an failure. |
johnml1135
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ddaspit)
ddaspit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Enkidu93)
src/SIL.Machine.AspNetCore/Services/CancellationInterceptor.cs line 26 at r1 (raw file):
if (ex is OperationCanceledException) { _logger.LogInformation(exception: ex, message: null);
Do we need to log this at all?
src/SIL.Machine.AspNetCore/Services/CancellationInterceptor.cs line 27 at r1 (raw file):
Previously, Enkidu93 (Eli C. Lowry) wrote…
After:
It returns a cancelled status code (which is wasn't before) and gets filtered on the other end. The notable difference is that it is logged as info rather than an failure.
Ok, good.
|
Previously, ddaspit (Damien Daspit) wrote…
@johnml1135 , you're the one who asked for it to be moved to info. Do you want this logged at all? A lower log level than info? Just ignore it? |
|
Previously, Enkidu93 (Eli C. Lowry) wrote…
Probably instead of printing the whole exception, we can just say "this job was cancelled." So we can know that the cancellation signal was successful. Info is fine - I don't need a stack trace though. |
ddaspit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Enkidu93 and @johnml1135)
src/SIL.Machine.AspNetCore/Services/CancellationInterceptor.cs line 26 at r1 (raw file):
Previously, johnml1135 (John Lambert) wrote…
Probably instead of printing the whole exception, we can just say "this job was cancelled." So we can know that the cancellation signal was successful. Info is fine - I don't need a stack trace though.
Sounds good to me.
|
Previously, ddaspit (Damien Daspit) wrote…
Done. |
ddaspit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @johnml1135)
johnml1135
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @Enkidu93)




This change is