logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickwilli...@apache.org
Subject svn commit: r1509521 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/db/nosql/mongo/MongoDBConnection.java
Date Fri, 02 Aug 2013 03:13:33 GMT
Author: nickwilliams
Date: Fri Aug  2 03:13:31 2013
New Revision: 1509521

URL: http://svn.apache.org/r1509521
Log:
[LOG4J2-331] Removing erroneous check for affected MongoDB records, which always returns zero
on inserts

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

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/db/nosql/mongo/MongoDBConnection.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/db/nosql/mongo/MongoDBConnection.java?rev=1509521&r1=1509520&r2=1509521&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/db/nosql/mongo/MongoDBConnection.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/db/nosql/mongo/MongoDBConnection.java
Fri Aug  2 03:13:31 2013
@@ -76,10 +76,6 @@ public final class MongoDBConnection imp
                 throw new AppenderLoggingException("Failed to write log event to MongoDB
due to error: " +
                         result.getError() + ".");
             }
-            if (result.getN() < 1) {
-                throw new AppenderLoggingException("Failed to write log event to MongoDB.
Number of records written: " +
-                        result.getN() + ".");
-            }
         } catch (final MongoException e) {
             throw new AppenderLoggingException("Failed to write log event to MongoDB due
to error: " + e.getMessage(),
                     e);



Mime
View raw message