Commit f0371745 authored by Hiro's avatar Hiro 🏄
Browse files

Add a warn to the logs to print when a node status firstSeen attribute is set.

Print the bridge fingerprint and the firstSeen field before it's being set.
parent 85af1382
Pipeline #38801 failed with stage
in 2 minutes and 6 seconds
......@@ -392,6 +392,11 @@ public class NodeDetailsStatusUpdater implements DescriptorListener,
if (nodeStatus.getFirstSeenMillis() == 0L
|| publishedMillis < nodeStatus.getFirstSeenMillis()) {
nodeStatus.setFirstSeenMillis(publishedMillis);
logger.warn("Set first_seen field to the published statuses timestamp" +
"bridge: {}" +
"nodeStatus first_seen: {}",
fingerprint, nodeStatus.getFirstSeenMillis()
)
}
if (publishedMillis > nodeStatus.getLastSeenMillis()) {
nodeStatus.setRelay(false);
......
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