Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes #2486: add root exception of node addition error when available

  • Loading branch information...
commit 00b01ae8abdf8f672cd023a04f6da8f32770c04d 1 parent 3ff9999
@fanf fanf authored
View
6 ...tory-provisioning-core/src/main/scala/com/normation/inventory/ldap/provisioning/DefaultReportSaver.scala
@@ -130,8 +130,12 @@ class DefaultReportSaver(
} else { //ok, so at least one non error. Log errors, merge non error, and post-process it
val changes : Seq[LDIFChangeRecord] = (Seq[LDIFChangeRecord]() /: results){ (records,r) => r match {
- case Failure(m,_,_) =>
+ case f@Failure(m,_,_) =>
logger.error("Report processing will be incomplete, found error: {}", m)
+ val cause = f.rootExceptionCause
+ cause.foreach(ex =>
+ logger.error("Associated exeption: %s: %s".format(ex.getClass, ex.getMessage))
+ )
records
case Empty => records //can't log anything relevant ?
case Full(seq) => records ++ seq
Please sign in to comment.
Something went wrong with that request. Please try again.