Skip to content

Commit

Permalink
Merge pull request #151 from yg3630536/feature/fix-issue-0619
Browse files Browse the repository at this point in the history
fix issue
  • Loading branch information
chenhaozx committed Jun 19, 2019
2 parents 2fc756f + f0d2044 commit 9933287
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ public ResponseData<CredentialPojo> createCredential(CreateCredentialPojoArgs ar

return responseData;
} catch (Exception e) {
e.printStackTrace();
logger.error("Generate Credential failed due to system error. ", e);
return new ResponseData<>(null, ErrorCode.CREDENTIAL_ERROR);
}
Expand Down Expand Up @@ -419,7 +418,6 @@ public ResponseData<CredentialPojo> createSelectiveCredential(
response.setErrorCode(ErrorCode.SUCCESS);
return response;
} catch (Exception e) {
e.printStackTrace();
logger.error("Generate SelectiveCredential failed due to system error. ", e);
return new ResponseData<>(null, ErrorCode.CREDENTIAL_ERROR);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public class KeyManagerCallback extends AmopCallback {

private static final Logger logger = LoggerFactory.getLogger(KeyManagerCallback.class);

private Persistence dataDriver = new MysqlDriver();

private static final String TRANSENCRYPTIONDOMAIN = "transEncryption";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ protected ResponseData<Integer> batchSave(String sql, List<List<String>> dataLis
}
result.setResult(count);
} catch (SQLException e) {
e.printStackTrace();
logger.error("Batch save data to mysql with exception", e);
result.setErrorCode(ErrorCode.SQL_EXECUTE_FAILED);
result.setResult(DataDriverConstant.SQL_EXECUTE_FAILED_STATUS);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/webank/weid/util/DataToolUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public static <T extends Serializable> T clone(T obj) {
clonedObj = (T) ois.readObject();
ois.close();
} catch (Exception e) {
e.printStackTrace();
logger.error("clone object has error.", e);
}
return clonedObj;
}
Expand Down

0 comments on commit 9933287

Please sign in to comment.