-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core: attempt to catch massive error dump when getting an errow hile … #1209
base: master
Are you sure you want to change the base?
Conversation
reject(error); | ||
req.on('error', (error) => { | ||
this.logger.log('Core side error when trying to send image to worker'); | ||
reject(new Error('Error while sending image to worker')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we losing any valuable information here? Like the error code or something that could help with debugging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The core dump usually doesn't give off any important information.
I would say if this is actually the source of the large core dump, then let's see if there any is any useful information that could be fetched from the error
object?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rcooke-warwick can we still log error.message
somewhere, assuming that's not where the dump is coming from? I don't like hiding all context from the error object.
96cc445
to
920ddb2
Compare
…flashing There is a large dump of errors sometimes when there is a connection fault while flashing the DUT via /flash on the worker. Attempt to catch it with this change to avoid large, useless crashdump in the logs Change-type: patch Signed-off-by: Ryan Cooke <[email protected]>
920ddb2
to
eae138e
Compare
…flashing
There is a large dump of errors sometimes when there is a connection fault while flashing the DUT via /flash on the worker. Attempt to catch it with this change to avoid large, useless crashdump in the logs
Change-type: patch