You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to have some informative logging surrounding integration checks - when they start and when they unexpectedly throw an exception:
// PlanInterpreterNonSequentialImpl.scalavallogger:IzLogger=???private[this] defcheckOrFail[F[_]:TagK](key: DIKey, resource: Any)(implicitF:QuasiIO[F]):F[Option[IntegrationCheckFailure]] = {
F.suspendF {
logger.debug(s"Checking $resource")
resource
.asInstanceOf[IntegrationCheck[F]]
.resourcesAvailable()
.flatMap {
caseResourceCheck.Success() =>F.pure(None)
casefailure: ResourceCheck.Failure=>F.pure(Some(IntegrationCheckFailure(key, newIntegrationCheckException(NonEmptyList(failure)))))
}
.guaranteeOnFailure {
exception =>F.maybeSuspend {
logger.crit(s"""Integration check for $resource threw unexpected $exception. |Integration checks shouldn't throw, but should return `ResourceCheck.Failure`, |considering this exception a critical failure and Aborting!""".stripMargin)
}
}
}
}
But the problem is that we don't have accesss to logstage IzLogger in distage-core – before when integration checks were implemented in distage-framework we did have access to IzLogger there.
The text was updated successfully, but these errors were encountered:
We want to have some informative logging surrounding integration checks - when they start and when they unexpectedly throw an exception:
But the problem is that we don't have accesss to logstage IzLogger in distage-core – before when integration checks were implemented in distage-framework we did have access to IzLogger there.
The text was updated successfully, but these errors were encountered: