Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import com.google.common.base.Charsets
import com.google.common.io.Files
import io.fabric8.kubernetes.api.model.Pod
import io.fabric8.kubernetes.client.{Watcher, WatcherException}
import io.fabric8.kubernetes.client.KubernetesClientException
import io.fabric8.kubernetes.client.Watcher.Action
import org.scalatest.{BeforeAndAfter, BeforeAndAfterAll, Tag}
import org.scalatest.concurrent.{Eventually, PatienceConfiguration}
Expand Down Expand Up @@ -106,11 +107,10 @@ class KubernetesSuite extends SparkFunSuite
.withName(execPod.getMetadata.getName)
.getLog
} catch {
case e: io.fabric8.kubernetes.client.KubernetesClientException =>
"Error fetching log (pod is likely not ready) ${e}"
case e: KubernetesClientException =>
s"Error fetching log (pod is likely not ready) $e"
}
logInfo(s"\nBEGIN executor (${execPod.getMetadata.getName}) POD log:\n" +
podLog)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated this because the indentation is wrong.

logInfo(s"\nBEGIN executor (${execPod.getMetadata.getName}) POD log:\n$podLog")
logInfo(s"END executor (${execPod.getMetadata.getName}) POD log")
}
}
Expand Down