Skip to content

Commit

Permalink
Logging for resource deletion (#170)
Browse files Browse the repository at this point in the history
* Logging for resource deletion

Remove dangling colon and replace with an ellipses and a second log statement

* Update KubernetesResourceCleaner.scala
  • Loading branch information
ash211 authored and mccheah committed Mar 6, 2017
1 parent f27885a commit c118f47
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ private[spark] class KubernetesResourceCleaner extends Logging {

def deleteAllRegisteredResourcesFromKubernetes(kubernetesClient: KubernetesClient): Unit = {
synchronized {
logInfo(s"Deleting ${resources.size} registered Kubernetes resources:")
val resourceCount = resources.size
logInfo(s"Deleting ${resourceCount} registered Kubernetes resources...")
resources.values.foreach { resource =>
Utils.tryLogNonFatalError {
kubernetesClient.resource(resource).delete()
}
}
resources.clear()
logInfo(s"Deleted ${resourceCount} registered Kubernetes resources.")
}
}
}

0 comments on commit c118f47

Please sign in to comment.