mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Reporting] ESQueue worker error logging fix (#46308)
This commit is contained in:
parent
b088cf1f7d
commit
08c87ea365
1 changed files with 3 additions and 1 deletions
|
@ -60,6 +60,8 @@ function getLogger(opts, id, logLevel) {
|
|||
`The entire error message length is: ${errLength} characters.`,
|
||||
tags
|
||||
);
|
||||
} else {
|
||||
logger(errString, tags);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -324,7 +326,7 @@ export class Worker extends events.EventEmitter {
|
|||
}
|
||||
}
|
||||
|
||||
this.warn(`Failure occurred on job ${job._id}`, jobErr);
|
||||
this.error(`Failure occurred on job ${job._id}`, jobErr);
|
||||
this.emit(constants.EVENT_WORKER_JOB_EXECUTION_ERROR, this._formatErrorParams(jobErr, job));
|
||||
return this._failJob(job, (jobErr.toString) ? jobErr.toString() : false);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue