Skip to content
Snippets Groups Projects
Commit 0a207f51 authored by Brandt Beal's avatar Brandt Beal
Browse files

fix: don't log stack traces for missing record properties

parent e9d821aa
No related branches found
No related tags found
2 merge requests!13fix: don't log stack traces for missing record properties,!12fix: don't log stack traces for missing record properties
Pipeline #3143 passed
......@@ -116,7 +116,9 @@ public class StorageIndexerPayloadMapper {
return PropertyUtils.getProperty(storageRecordData, propertyKey);
} catch (NestedNullException ignored) {
// property not found in record
} catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
} catch (NoSuchMethodException e) {
this.log.warning(String.format("record-id: %s | error fetching property: %s | error: %s", recordId, propertyKey, e.getMessage()));
} catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException e) {
this.log.warning(String.format("record-id: %s | error fetching property: %s | error: %s", recordId, propertyKey, e.getMessage()), e);
}
return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment