3
0
mirror of https://github.com/Qortal/qortal.git synced 2025-02-12 10:15:49 +00:00

Fixed/improved logging when an exception is caught whilst adding statuses to resources.

This commit is contained in:
CalDescent 2023-01-28 14:32:17 +00:00
parent 0ec5e39517
commit 5a1cc7a0de
2 changed files with 6 additions and 1 deletions

View File

@ -20,6 +20,11 @@ public class ArbitraryResourceInfo {
public ArbitraryResourceInfo() {
}
@Override
public String toString() {
return String.format("%s %s %s", name, service, identifier);
}
@Override
public boolean equals(Object o) {
if (o == this)

View File

@ -455,7 +455,7 @@ public class ArbitraryTransactionUtils {
} catch (Exception e) {
// Catch and log all exceptions, since some systems are experiencing 500 errors when including statuses
LOGGER.info("Caught exception when adding status to resource %s: %s", resourceInfo, e.toString());
LOGGER.info("Caught exception when adding status to resource {}: {}", resourceInfo, e.toString());
}
}
return updatedResources;