Skip to content

Commit

Permalink
Update ApplicationDataManager.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Innominate-Majesty authored Jun 17, 2024
1 parent e2ab181 commit bcc81fa
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ public void processAcknowledgement(String bundleId) {
try {
this.dataStoreAdaptor.deleteADUs(appId, aduId);
} catch (IOException e) {
logger.log(WARNING, "bundleclient",
"Could not delete ADUs up to adu: " + aduId + ", error: " + e.getMessage());
logger.log(WARNING,
"Could not delete ADUs up to adu: " + aduId, e);
continue;
}

Expand All @@ -243,6 +243,8 @@ public Optional<UncompressedPayload.Builder> getLastSentBundleBuilder() {

public class ApplicationDataManager {

private static final Logger logger = Logger.getLogger(ApplicationDataManager.class.getName());

private StateManager stateManager;

private DataStoreAdaptor dataStoreAdaptor;
Expand Down Expand Up @@ -315,7 +317,7 @@ public void storeADUs(List<ADU> adus) {
this.stateManager.updateLargestADUIdReceived(adu.getAppId(), adu.getADUId());
logger.log(FINE, "[ADM] Updated Largest ADU id: " + adu.getADUId() + "," + adu.getSource());
} catch (IOException e) {
logger.log(WARNING, "Could not persist adu: " + adu.getADUId() + ", error: " + e.getMessage());
logger.log(WARNING, "Could not persist adu: " + adu.getADUId(), e);
}
}
}
Expand Down

0 comments on commit bcc81fa

Please sign in to comment.