mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Hide stack trace for warning-level errors (#12411)
This commit is contained in:
@@ -29,7 +29,10 @@ export class ErrorReporter {
|
||||
const context = executionId ? ` (execution ${executionId})` : '';
|
||||
|
||||
do {
|
||||
const msg = [e.message + context, e.stack ? `\n${e.stack}\n` : ''].join('');
|
||||
const msg = [
|
||||
e.message + context,
|
||||
e instanceof ApplicationError && e.level === 'error' && e.stack ? `\n${e.stack}\n` : '',
|
||||
].join('');
|
||||
const meta = e instanceof ApplicationError ? e.extra : undefined;
|
||||
this.logger.error(msg, meta);
|
||||
e = e.cause as Error;
|
||||
|
||||
Reference in New Issue
Block a user