Browse Source
Merge pull request #11274 from logresearch/master
Fix bugs in three logging statement
pull/11399/head
Viacheslav Klimov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
3 additions and
3 deletions
-
application/src/main/java/org/thingsboard/server/service/install/update/ImagesUpdater.java
-
common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/bootstrap/secure/TbLwM2MDtlsBootstrapCertificateVerifier.java
-
dao/src/main/java/org/thingsboard/server/dao/alarm/BaseAlarmCommentService.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 { |
|
|
|
|
|
|
|
@ -82,7 +82,7 @@ public class TbLwM2MDtlsBootstrapCertificateVerifier implements NewAdvancedCerti |
|
|
|
staticCertificateVerifier = new StaticNewAdvancedCertificateVerifier(trustedCertificates, new RawPublicKeyIdentity[0], null); |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
log.warn("ailed to initialize the LwM2M certificate verifier", e); |
|
|
|
log.warn("Failed to initialize the LwM2M certificate verifier", e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -65,7 +65,7 @@ public class BaseAlarmCommentService extends AbstractEntityService implements Al |
|
|
|
|
|
|
|
@Override |
|
|
|
public AlarmComment saveAlarmComment(TenantId tenantId, AlarmComment alarmComment) { |
|
|
|
log.debug("Deleting Alarm Comment: {}", alarmComment); |
|
|
|
log.debug("Saving Alarm Comment: {}", alarmComment); |
|
|
|
alarmCommentDataValidator.validate(alarmComment, c -> tenantId); |
|
|
|
AlarmComment result = alarmCommentDao.save(tenantId, alarmComment); |
|
|
|
eventPublisher.publishEvent(DeleteEntityEvent.builder().tenantId(tenantId).entity(result) |
|
|
|
|