Skip to content

Add loggers in collector/modifier#468

Merged
tkaik merged 5 commits intowttech:masterfrom
Asia95:bugfix/codesniffer-js-source-file-is-written-to-logs
Feb 15, 2019
Merged

Add loggers in collector/modifier#468
tkaik merged 5 commits intowttech:masterfrom
Asia95:bugfix/codesniffer-js-source-file-is-written-to-logs

Conversation

@Asia95
Copy link
Copy Markdown

@Asia95 Asia95 commented Jan 21, 2019

I made changes in loggers as suggested in #446

Description

Motivation and Context

Closes #446

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • I have reviewed (and updated if needed) the documentation regarding this change

I hereby agree to the terms of the AET Contributor License Agreement.

private JavaScriptJobResult executeJs(String jsSnippet, Object... elements) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Executing JavaScript command: {} on page: {}", jsSnippet, currentUrl);
LOGGER.trace("Executing JavaScript command: {} on page: {}", jsSnippet, currentUrl);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! 👍

LOGGER.debug("Executing Accessibility Collector");
final String html = jsExecutor.execute(DOCUMENT_OUTER_HTML_SCRIPT)
.getExecutionResultAsString();
LOGGER.debug("Executing Accessibility Collector");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Duplicate messages were on purpose?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

fixed :)

@tkaik tkaik merged commit 4f8760e into wttech:master Feb 15, 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.

Entire codesniffer JS source file is written to logs for each accessibility collect

4 participants