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

Add detailed logging to public accounts service #1540

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

jcorilla
Copy link
Contributor

No description provided.

@wfa-reviewable
Copy link

This change is Reviewable

Copy link
Member

@SanjayVas SanjayVas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @jcorilla and @tristanvuong2021)


src/main/kotlin/org/wfanet/measurement/kingdom/service/api/v2alpha/AccountsService.kt line 98 at r1 (raw file):

          else -> throw Status.UNKNOWN.toExternalStatusRuntimeException(ex)
        }
      }

nit: can extract some common code from this for less repetition

Suggestion:

      } catch (e: StatusException) {
        throw when (e.status.code) {
          Status.Code.NOT_FOUND -> Status.NOT_FOUND
          Status.Code.PERMISSION_DENIED -> Status.PERMISSION_DENIED
          else -> Status.UNKNOWN
        }.toExternalStatusRuntimeException(e)
      }

@jcorilla jcorilla requested a review from Marco-Premier March 27, 2024 19:51
Copy link
Contributor

@Marco-Premier Marco-Premier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 5 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @tristanvuong2021)

@jcorilla jcorilla force-pushed the jcorilla-accounts-service-logging-update branch from b7f4d5d to d6711d3 Compare March 29, 2024 15:21
@jcorilla jcorilla merged commit 8e7cd4a into main Mar 29, 2024
4 checks passed
@jcorilla jcorilla deleted the jcorilla-accounts-service-logging-update branch March 29, 2024 15:54
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.

4 participants