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

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

See merge request !13
parents e9d821aa 0a207f51
No related branches found
No related tags found
1 merge request!13fix: don't log stack traces for missing record properties
Pipeline #3187 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