Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/332#discussion_r11330926
  
    --- Diff: core/src/main/scala/org/apache/spark/Logging.scala ---
    @@ -30,65 +30,66 @@ trait Logging {
       // Make the log field transient so that objects with Logging can
       // be serialized and used on another machine
       @transient private var log_ : Logger = null
    +  @transient protected var logName_ : String = null
     
       // Method to get or create the logger for this object
       protected def log: Logger = {
         if (log_ == null) {
           initializeIfNecessary()
    -      var className = this.getClass.getName
    +      var className = if(logName_ == null) this.getClass.getName else 
logName_
           // Ignore trailing $'s in the class names for Scala objects
           if (className.endsWith("$")) {
    --- End diff --
    
    This is a bit confusing now because you have this thing called `className` 
but it may-or-may-not refer to a class. See the note above.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to