mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
fix: Disable some error tracking (#4579)
* fix: remove error tracking for Circular reference in deepCopy * fix: remove error tracking on crash detection
This commit is contained in:
committed by
GitHub
parent
2ce747fa01
commit
b2201d0c77
@@ -2,7 +2,7 @@ import { existsSync } from 'fs';
|
||||
import { mkdir, utimes, open, rm } from 'fs/promises';
|
||||
import { join, dirname } from 'path';
|
||||
import { UserSettings } from 'n8n-core';
|
||||
import { ErrorReporterProxy as ErrorReporter, LoggerProxy, sleep } from 'n8n-workflow';
|
||||
import { LoggerProxy, sleep } from 'n8n-workflow';
|
||||
|
||||
export const touchFile = async (filePath: string): Promise<void> => {
|
||||
await mkdir(dirname(filePath), { recursive: true });
|
||||
@@ -20,7 +20,6 @@ const journalFile = join(UserSettings.getUserN8nFolderPath(), 'crash.journal');
|
||||
export const init = async () => {
|
||||
if (existsSync(journalFile)) {
|
||||
// Crash detected
|
||||
ErrorReporter.warn('Last session crashed');
|
||||
LoggerProxy.error('Last session crashed');
|
||||
// add a 10 seconds pause to slow down crash-looping
|
||||
await sleep(10_000);
|
||||
|
||||
Reference in New Issue
Block a user