Skip to content

Commit

Permalink
using an interpolated string
Browse files Browse the repository at this point in the history
  • Loading branch information
Sephiroth-Lin committed Feb 10, 2015
1 parent 4edf394 commit b968e14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/main/scala/org/apache/spark/HttpFileServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ private[spark] class HttpFileServer(
try {
Utils.deleteRecursively(baseDir)
} catch {
case e: Exception =>
logWarning("Exception while deleting Spark temp dir: " + baseDir.getAbsolutePath, e)
case e: Exception => {
val path = baseDir.getAbsolutePath
logWarning(s"Exception while deleting Spark temp dir: $path", e)
}
}
}

Expand Down

0 comments on commit b968e14

Please sign in to comment.