Skip to content

Commit

Permalink
Adding logging in getTestMatrix FTL api call
Browse files Browse the repository at this point in the history
  • Loading branch information
rnakade committed Jun 14, 2024
1 parent bb51ed3 commit 6cb5cbc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,16 @@ internal class FirebaseTestLabController(
suspend fun getTestMatrix(
testMatrixId: String
): TestMatrix? {
logger.info("Calling getTestMatrix in FTL on $testMatrixId")
return try {
firebaseTestLabApi.getTestMatrix(
projectId = firebaseProjectId,
testMatrixId = testMatrixId
)
} catch (httpException: HttpException) {
logger.error(httpException) {
"FTL getTestMatrix call ran into issues"
}
if (httpException.code() == 404) {
return null
}
Expand Down

0 comments on commit 6cb5cbc

Please sign in to comment.