This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository lima. See https://gitlab.nuiton.org/chorem/lima.git commit 20926d40c20ee8854826debb7efce1da3693e526 Author: David Cossé <cosse@codelutin.com> Date: Sat Oct 14 14:44:13 2017 +0200 refs #1395 Correction temporaire: ne pas remonter toutes les erreurs --- .../src/main/java/org/chorem/lima/business/ImportResult.java | 11 ++++++++++- lima-business/README.md | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lima-business-api/src/main/java/org/chorem/lima/business/ImportResult.java b/lima-business-api/src/main/java/org/chorem/lima/business/ImportResult.java index 4d0a7b38..201a889b 100644 --- a/lima-business-api/src/main/java/org/chorem/lima/business/ImportResult.java +++ b/lima-business-api/src/main/java/org/chorem/lima/business/ImportResult.java @@ -23,6 +23,9 @@ package org.chorem.lima.business; */ import com.google.common.collect.Maps; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.chorem.lima.business.exceptions.ImportFileException; import org.chorem.lima.business.exceptions.LimaException; import java.io.Serializable; @@ -33,6 +36,8 @@ import java.util.Map; */ public class ImportResult implements Serializable{ + private static final Log log = LogFactory.getLog(ImportResult.class); + protected int nbCreated; protected int nbUpdated; @@ -82,7 +87,11 @@ public class ImportResult implements Serializable{ } public void addException(LimaException e) { - allExceptions.put(this.lineIndex, e); + // TODO dcosse ref:1395 quick fix + log.error(e instanceof ImportFileException ? ((ImportFileException) e).getDetailMessage() : e); + if (allExceptions.size() < 50) { + allExceptions.put(this.lineIndex, e); + } nbIgnored++; lineIndex++; } diff --git a/lima-business/README.md b/lima-business/README.md index e69de29b..4977bc62 100644 --- a/lima-business/README.md +++ b/lima-business/README.md @@ -0,0 +1 @@ +~ \ No newline at end of file -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.