lib/logging/utils.rb in logging-0.9.5 vs lib/logging/utils.rb in logging-0.9.6

- old
+ new

@@ -79,10 +79,10 @@ # be used as the logger name. If used within a meta-class, the name of the # actual class will be used as the logger name. If used within an # anonymous module, the string 'anonymous' will be returned. # def logger_name - return name unless name.empty? + return name unless name.nil? or name.empty? # check if this is a metaclass (or eigenclass) if ancestors.include? Class inspect =~ %r/#<Class:([^#>]+)>/ return $1