log an ping notification improvements

This commit is contained in:
anhefti 2022-03-31 08:11:55 +02:00
parent 16582d0ce8
commit 23c63783d7
2 changed files with 3 additions and 11 deletions

View file

@ -84,8 +84,8 @@ public abstract class AbstractClientIndicator implements ClientIndicator {
this.connectionId,
getType());
if (this.ditributedIndicatorValueRecordId == null) {
log.warn("Failed to recover from missing indicator value cache record: {} type: {}",
if (this.ditributedIndicatorValueRecordId == null && log.isDebugEnabled()) {
log.debug("Failed to recover from missing indicator value cache record: {} type: {}",
this.connectionId,
getType());
}

View file

@ -30,15 +30,7 @@ public abstract class AbstractPingIndicator extends AbstractClientIndicator {
public final void notifyPing(final long timestamp, final int pingNumber) {
super.currentValue = timestamp;
if (!this.cachingEnabled) {
if (super.ditributedIndicatorValueRecordId == null) {
tryRecoverIndicatorRecord();
if (this.ditributedIndicatorValueRecordId == null) {
return;
}
}
if (!this.cachingEnabled && super.ditributedIndicatorValueRecordId != null) {
this.distributedIndicatorValueService.updatePingAsync(this.ditributedIndicatorValueRecordId);
}
}