Commit 6717c320 authored by Hiro's avatar Hiro 🏄
Browse files

Add logging

parent 778feb39
Pipeline #35358 failed with stage
in 1 minute and 31 seconds
......@@ -588,14 +588,17 @@ public class NodeDetailsStatusUpdater implements DescriptorListener,
UptimeStatus uptimeStatus = this.documentStore.retrieve(
UptimeStatus.class, true, fingerprint);
if (uptimeStatus != null) {
logger.warn("FirstSeenMillis < LastSeenMillis");
if (updatedNodeStatus.isRelay()) {
updatedNodeStatus.setFirstSeenMillis(
uptimeStatus.getRelayHistory().first().getStartMillis()
);
logger.warn("New FirstSeenMillis {}", uptimeStatus.getRelayHistory().first().getStartMillis())
} else {
updatedNodeStatus.setFirstSeenMillis(
uptimeStatus.getBridgeHistory().first().getStartMillis()
);
logger.warn("New FirstSeenMillis {}", uptimeStatus.getBridgeHistory().first().getStartMillis())
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment