From ccec2ec2de7c43e568f3815b2dadd61d889314a4 Mon Sep 17 00:00:00 2001 From: dvoet Date: Mon, 9 Apr 2018 14:48:29 -0400 Subject: [PATCH] log errors on billing create (#891) --- .../dsde/rawls/monitor/CreatingBillingProjectMonitor.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/scala/org/broadinstitute/dsde/rawls/monitor/CreatingBillingProjectMonitor.scala b/core/src/main/scala/org/broadinstitute/dsde/rawls/monitor/CreatingBillingProjectMonitor.scala index 3b00133585..bbea7ff23c 100644 --- a/core/src/main/scala/org/broadinstitute/dsde/rawls/monitor/CreatingBillingProjectMonitor.scala +++ b/core/src/main/scala/org/broadinstitute/dsde/rawls/monitor/CreatingBillingProjectMonitor.scala @@ -121,6 +121,7 @@ trait CreatingBillingProjectMonitor extends LazyLogging { case Seq(RawlsBillingProjectOperationRecord(_, gcsDAO.CREATE_PROJECT_OPERATION, _, true, Some(error), _)) => // create project operation finished with an error + logger.debug(s"project ${project.projectName} creation finished with errors: $error") Future.successful(project.copy(status = CreationStatuses.Error, message = Option(error))) case operations: Seq[RawlsBillingProjectOperationRecord] if operations.forall(rec => rec.done && rec.errorMessage.isEmpty) => @@ -144,7 +145,9 @@ trait CreatingBillingProjectMonitor extends LazyLogging { val messages = operations.collect { case RawlsBillingProjectOperationRecord(_, operationName, _, true, Some(error), _) => s"Failure enabling api $operationName: ${error}" } - Future.successful(project.copy(status = CreationStatuses.Error, message = Option(messages.mkString("[", "], [", "]")))) + val errorMessage = messages.mkString("[", "], [", "]") + logger.debug(s"errors enabling apis for project ${project.projectName}: $errorMessage") + Future.successful(project.copy(status = CreationStatuses.Error, message = Option(errorMessage))) case _ => // still running