Fix OOM Detection

This commit is contained in:
dada513 2022-06-21 12:09:09 +02:00
parent 1e00de4c95
commit 9cb629f308
No known key found for this signature in database
GPG key ID: 403448C14FA4B33E

View file

@ -121,7 +121,7 @@ const quiltFabricInternalsAnalyzer: Analyzer = async (text) => {
}; };
const oomAnalyzer: Analyzer = async (text) => { const oomAnalyzer: Analyzer = async (text) => {
if (text.includes('java.lang.OutOfMemoryError: Java heap space')) { if (text.includes('java.lang.OutOfMemoryError')) {
return [ return [
'Out of Memory', 'Out of Memory',
'Allocating more RAM to your instance could help prevent this crash.', 'Allocating more RAM to your instance could help prevent this crash.',
@ -226,7 +226,6 @@ export async function parseLog(s: string): Promise<MessageEmbed | null> {
} }
} }
if (!log) return null; if (!log) return null;
const embed = new MessageEmbed() const embed = new MessageEmbed()
.setTitle('Log analysis') .setTitle('Log analysis')
.setColor('DARK_GREEN'); .setColor('DARK_GREEN');