mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-07 03:06:40 +00:00
update logging
This commit is contained in:
@@ -63,10 +63,10 @@ export const startRemoteExitNodeOfflineChecker = (): void => {
|
|||||||
inArray(sites.exitNodeId, exitNodeIds)
|
inArray(sites.exitNodeId, exitNodeIds)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// loop through the sites and process their lastBandwidthUpdate as an iso string and if its more than 1 minute old then mark the site offline
|
// loop through the sites and process their lastBandwidthUpdate as an iso string and if its more than 1 minute old then mark the site offline
|
||||||
for (const site of sitesOnNode) {
|
for (const site of sitesOnNode) {
|
||||||
if (!site.lastBandwidthUpdate) {
|
if (!site.lastBandwidthUpdate) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const lastBandwidthUpdate = new Date(site.lastBandwidthUpdate);
|
const lastBandwidthUpdate = new Date(site.lastBandwidthUpdate);
|
||||||
@@ -83,7 +83,7 @@ export const startRemoteExitNodeOfflineChecker = (): void => {
|
|||||||
}
|
}
|
||||||
}, OFFLINE_CHECK_INTERVAL);
|
}, OFFLINE_CHECK_INTERVAL);
|
||||||
|
|
||||||
logger.info("Started offline checker interval");
|
logger.debug("Started offline checker interval");
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,4 +137,4 @@ export const handleRemoteExitNodePingMessage: MessageHandler = async (context) =
|
|||||||
broadcast: false,
|
broadcast: false,
|
||||||
excludeSender: false
|
excludeSender: false
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ export const startOlmOfflineChecker = (): void => {
|
|||||||
}
|
}
|
||||||
}, OFFLINE_CHECK_INTERVAL);
|
}, OFFLINE_CHECK_INTERVAL);
|
||||||
|
|
||||||
logger.info("Started offline checker interval");
|
logger.debug("Started offline checker interval");
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user