Browse Source

Update ImagesUpdater.java

The original logging statement had an inconsistency where the static text suggested an error in updating images, but the dynamic variables indicated an error in fetching an entity by ID. The update removes the redundant type placeholder in the error message to align the static text with the actual operation that failed, which is fetching an entity by ID.
pull/11274/head
logresearch 2 years ago
committed by GitHub
parent
commit
0f54161194
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      application/src/main/java/org/thingsboard/server/service/install/update/ImagesUpdater.java

2
application/src/main/java/org/thingsboard/server/service/install/update/ImagesUpdater.java

@ -147,7 +147,7 @@ public class ImagesUpdater {
try {
entity = dao.findById(TenantId.SYS_TENANT_ID, id.getId());
} catch (Exception e) {
log.error("Failed to update {} images: error fetching {} by id [{}]: {}", type, type, id.getId(), StringUtils.abbreviate(e.toString(), 1000));
log.error("Failed to update {} images: error fetching entity by id [{}]: {}", type, id.getId(), StringUtils.abbreviate(e.toString(), 1000));
continue;
}
try {

Loading…
Cancel
Save