logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1585240 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/nosql/mongodb/MongoDBConnection.java
Date Sun, 06 Apr 2014 03:36:21 GMT
Author: mattsicker
Date: Sun Apr  6 03:36:21 2014
New Revision: 1585240

URL: http://svn.apache.org/r1585240
Log:
Fix LOG4J2-591.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/nosql/mongodb/MongoDBConnection.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/nosql/mongodb/MongoDBConnection.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/nosql/mongodb/MongoDBConnection.java?rev=1585240&r1=1585239&r2=1585240&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/nosql/mongodb/MongoDBConnection.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/nosql/mongodb/MongoDBConnection.java
Sun Apr  6 03:36:21 2014
@@ -89,7 +89,9 @@ public final class MongoDBConnection imp
 
     @Override
     public void close() {
-        this.mongo.close();
+        // there's no need to call this.mongo.close() since that literally closes the connection
+        // MongoDBClient uses internal connection pooling
+        // for more details, see LOG4J2-591
     }
 
     @Override



Mime
View raw message