wangwei 5 ani în urmă
părinte
comite
1e6d6c037d

+ 4 - 1
src/main/java/cn/com/qmth/examcloud/web/facepp/FaceppClient.java

@@ -333,7 +333,7 @@ public class FaceppClient {
 		} catch (Exception e) {
 			log.error("[Face++]. compareWithTokenAndBase64(String,String); faceToken=" + faceToken
 					+ "; imageBase64=" + imageBase64 + "; cost " + (System.currentTimeMillis() - s)
-					+ " ms.");
+					+ " ms.", e);
 			throw new ExamCloudRuntimeException(e);
 		} finally {
 			IOUtils.closeQuietly(response);
@@ -397,6 +397,9 @@ public class FaceppClient {
 			}
 
 		} catch (Exception e) {
+			log.debug("[Face++]. compareWithImageUrl(String,String); image_url1=" + imageUrl1
+					+ "; imageUrl2=" + imageUrl2 + "; cost " + (System.currentTimeMillis() - s)
+					+ " ms.", e);
 			throw new ExamCloudRuntimeException(e);
 		} finally {
 			IOUtils.closeQuietly(response);