commit | b5e77de8626c652769019338e11a0f498d707ed2 | [log] [tgz] |
---|---|---|
author | Patrizio <patrizio.gelosi@amarulasolutions.com> | Wed Dec 13 14:55:17 2023 +0100 |
committer | Patrizio <patrizio.gelosi@amarulasolutions.com> | Wed Dec 13 14:58:23 2023 +0100 |
tree | 8ae809db9a435abea90e9cd7f5143d547b534432 | |
parent | dda44aa058f03934f9b3aef551180afca5b9421b [diff] |
Enhance logging capabilities Implemented error logging for cases when processing file diffs encounters an error. Jira-Id: IT-103 Change-Id: I8774d7c0526c2baa6260e69a49b48f72ef47f7e5 Signed-off-by: Patrizio <patrizio.gelosi@amarulasolutions.com>
diff --git a/src/main/java/com/googlesource/gerrit/plugins/chatgpt/client/GerritClientPatchSet.java b/src/main/java/com/googlesource/gerrit/plugins/chatgpt/client/GerritClientPatchSet.java index 3729be3..0bb5aa2 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/chatgpt/client/GerritClientPatchSet.java +++ b/src/main/java/com/googlesource/gerrit/plugins/chatgpt/client/GerritClientPatchSet.java
@@ -87,7 +87,7 @@ newFileContent.addAll(fieldValue); } } catch (IllegalAccessException | NoSuchFieldException e) { - e.printStackTrace(); + log.error("Error while processing file difference (field name: {})", fieldName, e); } }