From b968e148655f108b7501573bc4958369c7e17238 Mon Sep 17 00:00:00 2001 From: Sephiroth-Lin Date: Tue, 10 Feb 2015 19:01:37 +0800 Subject: [PATCH] using an interpolated string --- core/src/main/scala/org/apache/spark/HttpFileServer.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/scala/org/apache/spark/HttpFileServer.scala b/core/src/main/scala/org/apache/spark/HttpFileServer.scala index 094cb3dac485b..14721167ea7f1 100644 --- a/core/src/main/scala/org/apache/spark/HttpFileServer.scala +++ b/core/src/main/scala/org/apache/spark/HttpFileServer.scala @@ -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) + } } }