[Ils-source] r1518 - trunk/webapp/api/ccure/updatescore.vws

scribe at crosswire.org scribe at crosswire.org
Wed Feb 1 12:24:23 MST 2017


Author: scribe
Date: 2017-02-01 12:24:22 -0700 (Wed, 01 Feb 2017)
New Revision: 1518

Modified:
   trunk/webapp/api/ccure/updatescore.vws/index.jsp
Log:
added more logging for CCURE updatescore hook


Modified: trunk/webapp/api/ccure/updatescore.vws/index.jsp
===================================================================
--- trunk/webapp/api/ccure/updatescore.vws/index.jsp	2017-01-09 13:47:54 UTC (rev 1517)
+++ trunk/webapp/api/ccure/updatescore.vws/index.jsp	2017-02-01 19:24:22 UTC (rev 1518)
@@ -190,7 +190,9 @@
 		try {
 			result = HTTPUtils.postURL(url, params, null, null, headers, HTTPUtils.PUT, false, httpResponse);
 			if (httpResponse.resultCode < 200 || httpResponse.resultCode > 299) {
-				out.print("<error code=\""+errCode+"\" message=\"CCURE error response: ("+httpResponse.resultCode+") " + HTTPUtils.canonize(result.toString())+"\"/>");
+				errorMsg = "<error code=\""+errCode+"\" message=\"CCURE error response: ("+httpResponse.resultCode+") " + HTTPUtils.canonize(result.toString())+"\"/>";
+				out.print(errorMsg);
+				aicc.info("CCURE: Failed to write results for: courseName=["+courseName+"] to CCURE Personnel ObjectID: ["+personID+"]: " + errorMsg);
 				return;
 			}
 			errorMsg = "OK";
@@ -199,10 +201,10 @@
 
 
 		if (!"OK".equals(errorMsg)) {
-			eventsLogger.debug("CCURE: Failed to write results for: courseName=["+courseName+"] to CCURE Personnel ObjectID: ["+personID+"]");
+			aicc.info("CCURE: Failed to write results for: courseName=["+courseName+"] to CCURE Personnel ObjectID: ["+personID+"]");
 			errorMsg = "Couldn't update personID [" + personID + "] in the CCURE Database. No result rows modified on update.";
 		}
-		eventsLogger.debug("CCURE: updatescore returning: " + errorMsg);
+		aicc.info("CCURE: updatescore returning: " + errorMsg);
 
 		response.setContentType("text/plain");
 		out.print(errorMsg);




More information about the Ils-source mailing list