aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorPatrick Wendell <pwendell@gmail.com>2013-12-30 12:46:09 -0800
committerPatrick Wendell <pwendell@gmail.com>2013-12-30 12:46:09 -0800
commit1cbef081e3d1dcc647b49a2f2b5f13ceaa0f611d (patch)
tree16fcf3b01e0aefb2bf28691538e7f7eeda1f2376 /core
parentcffe1c1d5c0abfbb463fa91e8b340a9c535532fe (diff)
downloadspark-1cbef081e3d1dcc647b49a2f2b5f13ceaa0f611d.tar.gz
spark-1cbef081e3d1dcc647b49a2f2b5f13ceaa0f611d.tar.bz2
spark-1cbef081e3d1dcc647b49a2f2b5f13ceaa0f611d.zip
Response to Shivaram's review
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/org/apache/spark/Logging.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/Logging.scala b/core/src/main/scala/org/apache/spark/Logging.scala
index a8892737fa..b97697d587 100644
--- a/core/src/main/scala/org/apache/spark/Logging.scala
+++ b/core/src/main/scala/org/apache/spark/Logging.scala
@@ -93,7 +93,7 @@ trait Logging {
// threads do it concurrently (as SLF4J initialization is not thread safe).
protected def initLogging() {
// If Log4j doesn't seem initialized, load a default properties file
- def log4jInitialized = LogManager.getRootLogger.getAllAppenders.hasMoreElements
+ val log4jInitialized = LogManager.getRootLogger.getAllAppenders.hasMoreElements
if (!log4jInitialized) {
val defaultLogProps = "org/apache/spark/default-log4j.properties"
val classLoader = this.getClass.getClassLoader