Reduce logging verbosity
This commit is contained in:
parent
b9bf372fc7
commit
cea337a5fd
@ -28,13 +28,12 @@ object FutureObservable {
|
|||||||
* is already a built-in feature.
|
* is already a built-in feature.
|
||||||
*/
|
*/
|
||||||
def apply[A](defaultValue: A)(future: Future[A])(implicit ec: ExecutionContext): ReadOnlyObjectProperty[A] = {
|
def apply[A](defaultValue: A)(future: Future[A])(implicit ec: ExecutionContext): ReadOnlyObjectProperty[A] = {
|
||||||
logger.debug(s"Got request to create new FutureObservable")
|
|
||||||
future.value match {
|
future.value match {
|
||||||
case Some(Success(a)) =>
|
case Some(Success(a)) =>
|
||||||
ObjectProperty(a)
|
ObjectProperty(a)
|
||||||
|
|
||||||
case Some(Failure(f)) =>
|
case Some(Failure(f)) =>
|
||||||
logger.info(s"Got failure from FutureObservable's result: $f")
|
logger.debug(s"Got failure from FutureObservable's result: $f")
|
||||||
ObjectProperty(defaultValue)
|
ObjectProperty(defaultValue)
|
||||||
|
|
||||||
case None =>
|
case None =>
|
||||||
|
Loading…
Reference in New Issue
Block a user