Skip to content

Commit

Permalink
Adding outer checkout when initializing logging
Browse files Browse the repository at this point in the history
  • Loading branch information
pwendell committed Jan 1, 2014
1 parent 4abb0c5 commit 37c43c9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/src/main/scala/org/apache/spark/Logging.scala
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ trait Logging {
}

private def initializeIfNecessary() {
Logging.initLock.synchronized {
if (!Logging.initialized) {
initializeLogging()
if (!Logging.initialized) {
Logging.initLock.synchronized {
if (!Logging.initialized) {
initializeLogging()
}
}
}
}
Expand Down

0 comments on commit 37c43c9

Please sign in to comment.