mirror of
https://github.com/pyrohost/pyrodactyl.git
synced 2026-04-06 04:01:58 +02:00
fix: mclogs insights
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user