From c208df1ff87e72f20e318b584d6ab011881ebf4e Mon Sep 17 00:00:00 2001 From: tkellner Date: Mon, 1 Oct 2012 14:59:28 +0000 Subject: log STAL ErrorResponse git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1141 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../main/java/at/gv/egiz/stal/service/impl/STALServiceImpl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'BKUOnline/src') diff --git a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALServiceImpl.java b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALServiceImpl.java index 744ea3e1..a1e29870 100644 --- a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALServiceImpl.java +++ b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALServiceImpl.java @@ -162,10 +162,14 @@ public class STALServiceImpl implements STALPortType { if (log.isDebugEnabled()) { StringBuilder sb = new StringBuilder("Received GetNextRequest containing "); sb.append(responsesIn.size()); - sb.append(" responses: "); + sb.append(" responses:"); for (JAXBElement respIn : responsesIn) { - sb.append(respIn.getValue().getClass()); sb.append(' '); + sb.append(respIn.getValue().getClass()); + if (respIn.getValue() instanceof ErrorResponseType) { + ErrorResponseType err = (ErrorResponseType)respIn.getValue(); + sb.append(" (" + err.getErrorCode() + " - " + err.getErrorMessage() + ")"); + } } log.debug(sb.toString()); } -- cgit v1.2.3