-
Notifications
You must be signed in to change notification settings - Fork 406
Feature/ri 6205 enhance logs #4521
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
Conversation
adedf58
to
9555209
Compare
const error1 = new Error('Original error'); | ||
error1['some'] = 'field'; | ||
const error2 = new NotFoundException('Not found', { cause: error1 }); | ||
const error3 = new BadRequestException('Bad req', { cause: error2 }); | ||
const error4 = new CloudOauthMisconfigurationException('Misconfigured', { cause: error3 }); |
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.
These names are not very descriptive
const error1 = new Error('Original error'); | |
error1['some'] = 'field'; | |
const error2 = new NotFoundException('Not found', { cause: error1 }); | |
const error3 = new BadRequestException('Bad req', { cause: error2 }); | |
const error4 = new CloudOauthMisconfigurationException('Misconfigured', { cause: error3 }); | |
const genericError = new Error('Original error'); | |
genericError['some'] = 'field'; | |
const notFoundError = new NotFoundException('Not found', { cause: error1 }); | |
const badRequestError = new BadRequestException('Bad req', { cause: error2 }); | |
const cloudError = new CloudOauthMisconfigurationException('Misconfigured', { cause: error3 }); |
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.
Ok. I've changed them to more meaningful names
|
||
const mockLogData: any = { | ||
sessionMetadata: mockSessionMetadata, | ||
error: error4, |
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.
error: error4, | |
error: cloudError, |
sessionMetadata: mockSessionMetadata, | ||
error: error4, | ||
data: [ | ||
error3, |
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.
error3, | |
badRequestError, |
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.
I think now is much more understandable
No description provided.