Skip to content

Conversation

@lukasmasuch
Copy link
Collaborator

@lukasmasuch lukasmasuch commented Jan 8, 2025

Describe your changes

This PR activates the flake8-logging-format (G) linting rules from ruff to enforce better usage of the built-in logger. It also moves all exceptions in logger output to exc_info which is the correct way to handle exceptions via the built-in logger.

Testing Plan

  • No logical changes.

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@lukasmasuch lukasmasuch added security-assessment-completed Security assessment has been completed for PR impact:internal PR changes only affect internal code change:refactor PR contains code refactoring without behavior change labels Jan 8, 2025
@lukasmasuch lukasmasuch changed the title [WIP] Improve usage of built-in logging Improve usage of built-in logging Jan 9, 2025
@lukasmasuch lukasmasuch marked this pull request as ready for review January 9, 2025 04:35
@lukasmasuch lukasmasuch changed the title Improve usage of built-in logging Activating linting rule for more consistent usage of built-in logging Jan 10, 2025
@lukasmasuch lukasmasuch merged commit 7a7ddbb into develop Jan 10, 2025
33 checks passed
@lukasmasuch lukasmasuch deleted the refactor/unify-built-in-logging-usage branch January 10, 2025 17:01
edegp pushed a commit to edegp/streamlit that referenced this pull request Jan 19, 2025
…streamlit#10133)

## Describe your changes

This PR activates the [flake8-logging-format
(G)](https://docs.astral.sh/ruff/rules/#flake8-logging-format-g) linting
rules from ruff to enforce better usage of the built-in logger. It also
moves all exceptions in logger output to `exc_info` which is the correct
way to handle exceptions via the built-in logger.

## Testing Plan

- No logical changes.
---

**Contribution License Agreement**

By submitting this pull request you agree that all contributions to this
project are made under the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:refactor PR contains code refactoring without behavior change impact:internal PR changes only affect internal code security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants