-
Notifications
You must be signed in to change notification settings - Fork 544
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
Fix: stack trace of exceptions are not being logged #1974 #3157
Fix: stack trace of exceptions are not being logged #1974 #3157
Conversation
replace string concatenation with throwable parameter see wso2#1974
replace log.error() with Assert.fail() in order to detect test failures Logging in a test might be overseen
Dear reviewer, I hope that's in your interest. Any feedback welcome. |
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.
Hi @nitram509
Thanks for your contribution. Much Appreciated.
I'm adding one minor comment to be fixed. Please get that addressed and the PR would be ready to be merged.
import static org.testng.Assert.assertEquals; | ||
import static org.testng.Assert.assertNotNull; | ||
import static org.testng.Assert.assertTrue; | ||
import static org.testng.Assert.*; |
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.
As a practice, we avoid * imports. So, please revert this back to individual imports
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.
👍
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.
@pulasthi7 Thank you for your review.
I did change the import as per convention.
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.
Thanks @nitram509
Proposed changes in this pull request
This is a fix for #1974 Stack trace of exceptions are not being logged.
When should this PR be merged
I don't see any pre-conditions.
Could be merged right away.
Follow up actions
Checklist (for reviewing)
General
Functionality
Code
Tests
Security
Documentation