File tree Expand file tree Collapse file tree
experimentation/src/main/java/com/automattic/android/experimentation/local Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ internal class FileBasedCache(
3232 scope.launch {
3333 withContext(context = dispatcher) {
3434 runCatching { latestMutable = getAssignments() }
35- .onFailure { logger.e(" Failed to load cached assignments: $it " ) }
35+ .onFailure { throwable -> logger.e(" Failed to load cached assignments" , throwable ) }
3636 }
3737 }
3838 }
@@ -47,8 +47,8 @@ internal class FileBasedCache(
4747 return @withContext null
4848 }
4949 runCatching { cacheDtoJsonAdapter.fromJson(json) }
50- .onFailure {
51- logger.e(" Cached assignments file is corrupted, deleting: ${file.path} " )
50+ .onFailure { throwable ->
51+ logger.e(" Cached assignments file is corrupted, deleting: ${file.path} " , throwable )
5252 file.delete()
5353 }
5454 .getOrNull()
You can’t perform that action at this time.
0 commit comments