Remove debug logging from Hytale player detection
All checks were successful
Deploy GSM / deploy (push) Successful in 28s
All checks were successful
Deploy GSM / deploy (push) Successful in 28s
This commit is contained in:
@@ -655,7 +655,6 @@ export async function getHytalePlayers(server) {
|
||||
// Find the most recent log file
|
||||
const logFileResult = await ssh.execCommand(`ls -t ${HYTALE_LOGS_PATH}/*.log 2>/dev/null | head -1`);
|
||||
if (!logFileResult.stdout.trim()) {
|
||||
console.log('[Hytale] No log file found');
|
||||
return { online: 0, players: [] };
|
||||
}
|
||||
|
||||
@@ -688,7 +687,6 @@ export async function getHytalePlayers(server) {
|
||||
}
|
||||
|
||||
const playerList = Array.from(players.values());
|
||||
console.log(`[Hytale] Found ${playerList.length} players: ${playerList.join(', ') || 'none'}`);
|
||||
return { online: playerList.length, players: playerList };
|
||||
} catch (err) {
|
||||
console.error(`[Hytale] Error getting players:`, err.message);
|
||||
|
||||
Reference in New Issue
Block a user