fix: mclogs insights

This commit is contained in:
Elizabeth
2025-08-17 13:40:09 -05:00
parent 3f1f762855
commit c59ca961c4
2 changed files with 3 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
import { useEffect, useRef, useState } from 'react';
import { useRef, useState } from 'react';
import { toast } from 'sonner';
import ActionButton from '@/components/elements/ActionButton';
@@ -82,8 +82,8 @@ const MclogsFeature = () => {
// Listen for console output and detect crashes
useWebsocketEvent(SocketEvent.CONSOLE_OUTPUT, (data: string) => {
// Only analyze if server is not running (likely crashed)
if (status === 'running') return;
// Only analyze if server is stopped (not starting up or running)
if (status !== 'offline') return;
if (isCrashLine(data)) {
debouncedAnalyzeCrash();

View File

@@ -22,11 +22,6 @@ const CRASH_INDICATORS = [
'Crash Report',
'---- Minecraft Crash Report ----',
'A detailed walkthrough of the error',
'org.spigotmc.',
'net.minecraft.',
'com.mojang.',
'net.minecraftforge.',
'net.fabricmc.',
// Generic server crashes
'Internal server error',
@@ -42,8 +37,6 @@ const CRASH_INDICATORS = [
'Server marked as offline',
'Crashed with exit code',
'Unexpected shutdown',
'ERROR',
'FATAL',
];
/**