Reduce logging verbosity

This commit is contained in:
Sarah Gerweck 2016-05-30 19:39:54 -07:00
parent b9bf372fc7
commit cea337a5fd

View File

@ -28,13 +28,12 @@ object FutureObservable {
* is already a built-in feature.
*/
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 {
case Some(Success(a)) =>
ObjectProperty(a)
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)
case None =>