Improve RDE error logging

RDE logs somewhat inscrutable errors when XML validation of the output fails due to bad data in Datastore. This CL adds a little more information to help us track down this sort of problem in the future.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=140872462
This commit is contained in:
mountford
2016-12-06 11:52:46 -05:00
committed by Ben McIlwain
parent f227598920
commit da711343f0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ public final class RdeMarshaller implements Serializable {
Key.create(resource),
e.getLinkedException(),
getMarshaller().marshalLenient(element));
logger.severe(error);
logger.severe(e, error);
}
return DepositFragment.create(type, xml, error);
}