Skip to content

Commit

Permalink
Adding logging in getTestMatrix FTL api call (#81)
Browse files Browse the repository at this point in the history
* Adding logging in getTestMatrix FTL api call

* adding testmatrixId to log
  • Loading branch information
rnakade authored Jun 17, 2024
1 parent bb51ed3 commit 178298f
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 for $testMatrixId ran into issues"
}
if (httpException.code() == 404) {
return null
}
Expand Down

0 comments on commit 178298f

Please sign in to comment.