Skip to content

Commit

Permalink
Add log
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Dec 7, 2016
1 parent 2cd4282 commit ae3d42c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/src/main/scala/org/apache/spark/SparkContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1769,7 +1769,13 @@ class SparkContext(config: SparkConf) extends Logging {
setDaemon(true)

override def run(): Unit = {
SparkContext.this.stop()
try {
SparkContext.this.stop()
} catch {
case e: Throwable =>
logError(e.getMessage, e)
throw e
}
}
}.start()
}
Expand Down

0 comments on commit ae3d42c

Please sign in to comment.