diff --git a/domain/src/main/java/org/oppia/android/domain/oppialogger/analytics/AnalyticsController.kt b/domain/src/main/java/org/oppia/android/domain/oppialogger/analytics/AnalyticsController.kt index 686ad0c864a..6de1f35fa92 100644 --- a/domain/src/main/java/org/oppia/android/domain/oppialogger/analytics/AnalyticsController.kt +++ b/domain/src/main/java/org/oppia/android/domain/oppialogger/analytics/AnalyticsController.kt @@ -199,7 +199,6 @@ class AnalyticsController @Inject constructor( .addEventLogsToUpload(eventLog) .build() } else { - // TODO(#1433): Refactoring for logging exceptions to both console and exception loggers. val exception = IllegalStateException("Least Recent Event index absent -- EventLogCacheStoreSize is 0") consoleLogger.e("AnalyticsController", "Failure while caching event.", exception) diff --git a/domain/src/main/java/org/oppia/android/domain/oppialogger/analytics/PerformanceMetricsController.kt b/domain/src/main/java/org/oppia/android/domain/oppialogger/analytics/PerformanceMetricsController.kt index 710679e58f3..f518ff6121e 100644 --- a/domain/src/main/java/org/oppia/android/domain/oppialogger/analytics/PerformanceMetricsController.kt +++ b/domain/src/main/java/org/oppia/android/domain/oppialogger/analytics/PerformanceMetricsController.kt @@ -81,7 +81,6 @@ class PerformanceMetricsController @Inject constructor( .addOppiaMetricLog(oppiaMetricLog) .build() } else { - // TODO(#1433): Refactoring for logging exceptions to both console and exception loggers. val exception = IllegalStateException( "Least Recent Event index absent -- MetricLogStorageCacheSize is 0" diff --git a/domain/src/main/java/org/oppia/android/domain/oppialogger/exceptions/ExceptionsController.kt b/domain/src/main/java/org/oppia/android/domain/oppialogger/exceptions/ExceptionsController.kt index 2e1e059f809..026156cf0cd 100644 --- a/domain/src/main/java/org/oppia/android/domain/oppialogger/exceptions/ExceptionsController.kt +++ b/domain/src/main/java/org/oppia/android/domain/oppialogger/exceptions/ExceptionsController.kt @@ -131,12 +131,12 @@ class ExceptionsController @Inject constructor( .addExceptionLog(exceptionLog) .build() } else { - // TODO(#1433): Refactoring for logging exceptions to both console and exception loggers. val exception = NullPointerException( "Least Recent Exception index absent -- ExceptionLogCacheStoreSize is 0" ) consoleLogger.e(EXCEPTIONS_CONTROLLER, exception.toString()) + exceptionLogger.logException(exception) } } return@storeDataAsync oppiaExceptionLogs.toBuilder().addExceptionLog(exceptionLog).build()