Skip to content

Update logging information based on 'extractor-python.md'#626

Merged
taus-semmle merged 2 commits into
github:rc/1.19from
felicitymay:1.19/python-change-notes
Dec 5, 2018
Merged

Update logging information based on 'extractor-python.md'#626
taus-semmle merged 2 commits into
github:rc/1.19from
felicitymay:1.19/python-change-notes

Conversation

@felicitymay

Copy link
Copy Markdown
Contributor

This PR updates the information on logging based on the near duplicate content of extractor-python.md.

@taus-semmle - as discussed, I'll also raise a PR to delete the other file. I wasn't entirely sure whether the final bullet point about EncodingError was part of the logging improvements or not.

@taus-semmle taus-semmle left a comment

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.

One minor comment, otherwise looks good to me.

Comment thread change-notes/1.19/analysis-python.md Outdated
* The `--verbose` flag can be specified specified multiple times to increase the logging level once per flag added.
* The `--quiet` flag can be specified multiple times to reduce the logging level once per flag added.
* Log lines are now in the `[SEVERITY] message` style and never overlap.
* The extractor now outputs the location of the first character that triggers an EncodingError.

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.

This should be in a different section. It does not influence the output in the log, but rather improves the placement of the alert relating to an EncodingError. Previously, the alert was always displayed at the top of the file. With the extractor improvement, it'll now get displayed at the position of the character that caused the EncodingError.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I'll update accordingly here and in the related LGTM PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Which query reports alerts for encoding errors? I want to check if it's run on LGTM or not.

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.

@taus-semmle taus-semmle merged commit a8354b9 into github:rc/1.19 Dec 5, 2018
@felicitymay felicitymay deleted the 1.19/python-change-notes branch September 23, 2019 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants