diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts index b59257b..41ec207 100644 --- a/packages/server/src/index.ts +++ b/packages/server/src/index.ts @@ -259,7 +259,7 @@ wssController.on('connection', (ws, req) => { const firstSpareWorkerId = nextSpareWorkerId; do { const mainDeviceId = identifyControlChannelFromWorkerId(nextSpareWorkerId); - log.info(`CONTROLLER: Found ${mainDeviceId} connects to workerId ${nextSpareWorkerId}`); + log.debug(`CONTROLLER: Found ${mainDeviceId} connects to workerId ${nextSpareWorkerId}`); if (mainDeviceId == null) { log.info(`CONTROLLER: Warning - found ${nextSpareWorkerId} in pool with no record of main device`); unallocatedConnections.push(nextSpareWorkerId); @@ -288,7 +288,8 @@ wssController.on('connection', (ws, req) => { // no devices found, return the original one back to pool unallocatedConnections.push(nextSpareWorkerId); log.info( - `CONTROLLER: New connection from ${req.socket.remoteAddress} - no Devices available outside cooldown, rejecting`, + `CONTROLLER: New connection from ${req.socket.remoteAddress} - no Devices available outside cooldown, which is set to ${config.monitor.deviceCooldown} seconds. `+ + `If you're seeing this, either increase the number of devices, reduce the demand for workers, or decrease the device cooldown. Rejecting connection.`, ); // error! ws.close(3001, 'All devices are in cooldown');