Update logging
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user