From 178298fc3e05a682d315e2f1fff3407a9a283dc2 Mon Sep 17 00:00:00 2001 From: Radha Nakade Date: Mon, 17 Jun 2024 12:48:39 -0700 Subject: [PATCH] Adding logging in getTestMatrix FTL api call (#81) * Adding logging in getTestMatrix FTL api call * adding testmatrixId to log --- .../dev/androidx/ci/testRunner/FirebaseTestLabController.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AndroidXCI/lib/src/main/kotlin/dev/androidx/ci/testRunner/FirebaseTestLabController.kt b/AndroidXCI/lib/src/main/kotlin/dev/androidx/ci/testRunner/FirebaseTestLabController.kt index 980976a..37ee7c2 100644 --- a/AndroidXCI/lib/src/main/kotlin/dev/androidx/ci/testRunner/FirebaseTestLabController.kt +++ b/AndroidXCI/lib/src/main/kotlin/dev/androidx/ci/testRunner/FirebaseTestLabController.kt @@ -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 }