Skip to content
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

#928 Continue working if one of listeners threw an exception #958

Merged
merged 2 commits into from Jul 31, 2019

Conversation

asolntsev
Copy link
Member

@asolntsev asolntsev commented Jul 24, 2019

Proposed changes

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue.

Checklist

  • Checkstyle and unit tests pass locally with my changes by running gradle check chrome htmlunit command
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@asolntsev asolntsev self-assigned this Jul 24, 2019
@asolntsev asolntsev added this to the 5.3.0 milestone Jul 24, 2019
@asolntsev
Copy link
Member Author

See also allure-framework/allure-java#380

@asolntsev asolntsev requested a review from rosolko July 25, 2019 08:14
@asolntsev asolntsev changed the title #928 Continue working if one of listeners thew an exception #928 Continue working if one of listeners threw an exception Jul 25, 2019
Copy link
Collaborator

@rosolko rosolko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@@ -98,8 +112,8 @@ public static void removeAllListeners() {
* If listener with given name is bound (added) to the current thread.
*
* @param name unique name of listener added by method {@link #addListener(String, LogEventListener)}
* @return true iff method {@link #addListener(String, LogEventListener)} with
* corresponding name has been called in current thread.
* @return true iff method {@link #addListener(String, LogEventListener)} with
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @return true iff method {@link #addListener(String, LogEventListener)} with
* @return true if method {@link #addListener(String, LogEventListener)} with

Method `WebElement.isSelected()` may throw `WebDriverException` on iOS
@asolntsev asolntsev force-pushed the fix-logging-if-listener-fails branch from 246d523 to 282e921 Compare July 31, 2019 18:09
@asolntsev asolntsev merged commit 1f842a6 into master Jul 31, 2019
@asolntsev asolntsev deleted the fix-logging-if-listener-fails branch July 31, 2019 18:10
@asolntsev asolntsev modified the milestones: 5.3.0, 5.2.7 Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants