Update logging
All checks were successful
release-tag / release-image (push) Successful in 1m45s
DRB Tests / drb_mocha_tests (push) Successful in 36s

This commit is contained in:
Logan Cusano
2024-08-04 16:31:29 -04:00
parent aac86d5d71
commit 450b7d3219

View File

@@ -195,6 +195,7 @@ export const checkIfNodeHasOpenDiscordClient = async (openSocket) => {
// Check the open socket to see if the node has an open discord client
let hasOpenDiscordClient = false;
await new Promise((res) => {
log.INFO("Checking if socket has an open connection:", openSocket.node.name)
openSocket.emit('node-check-discord-open-client', (status) => {
if (status) {
log.INFO("Socket has an open discord client:", openSocket.node.name, status);
@@ -216,6 +217,7 @@ export const getNodeCurrentListeningSystem = async (openSocket) => {
// check what system the socket is listening to
let currentSystem = undefined;
await new Promise((res) => {
log.INFO("Checking system node is currently listening to:", openSocket.node.name)
openSocket.emit('node-check-current-system', (system) => {
if (system) {
log.INFO("Socket is listening to system:", openSocket.node.name, system);