log an ping notification improvements
This commit is contained in:
parent
16582d0ce8
commit
23c63783d7
2 changed files with 3 additions and 11 deletions
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue