mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-05 18:42:55 +00:00
bug6226: to understand the issue better, added exception logging
This commit is contained in:
1 parent
694712b631
commit
51d7302669
1 file changed
+8
-1
+8
-1
@@ -2091,7 +2091,14 @@ public class MongoObjectFactoryImpl implements MongoObjectFactory {
|
||||
}
|
||||
}
|
||||
result.put(FieldNames.MANEUVERS.name(), maneuverList);
|
||||
maneuverCollection.replaceOne(query, result, new ReplaceOptions().upsert(true));
|
||||
try {
|
||||
maneuverCollection.replaceOne(query, result, new ReplaceOptions().upsert(true));
|
||||
} catch (org.bson.BsonMaximumSizeExceededException e) {
|
||||
logger.log(Level.WARNING, "Maneuver document for competitor "+competitor.getName()+
|
||||
" in race "+raceIdentifier+
|
||||
" got too big; what about bug 6226?", e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
private Document generateManeuverDoc(Maneuver maneuver, Course course) {
|
||||
|
||||
Reference in new issue
Block a user