Skip to content

Remove unneccesary custom LOG_LEVEL check #1424

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

Merged
merged 5 commits into from
Mar 10, 2023

Conversation

wlcrs
Copy link
Contributor

@wlcrs wlcrs commented Mar 10, 2023

As requested in #1324 (comment), this is a PR which removes the LOG_LEVEL class variable from the pymodbus.logging.Log class.

I added a test which demonstrates that Log.build_msg is still called as little as possible.

wlcrs added 5 commits March 10, 2023 08:13

Verified

This commit was signed with the committer’s verified signature. The key has expired.
belimawr Tiago Queiroz

Verified

This commit was signed with the committer’s verified signature. The key has expired.
belimawr Tiago Queiroz

Verified

This commit was signed with the committer’s verified signature. The key has expired.
belimawr Tiago Queiroz

Verified

This commit was signed with the committer’s verified signature. The key has expired.
belimawr Tiago Queiroz

Verified

This commit was signed with the committer’s verified signature. The key has expired.
belimawr Tiago Queiroz
Copy link
Collaborator

@janiversen janiversen left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@janiversen janiversen merged commit d086ad2 into pymodbus-dev:dev Mar 10, 2023
@wlcrs wlcrs deleted the simplify_logging branch March 10, 2023 09:30
@jamesbraza
Copy link
Contributor

@wlcrs and @janiversen nice, I had wanted to do this but you actually did it! 🥳

janiversen pushed a commit that referenced this pull request Mar 19, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
belimawr Tiago Queiroz
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants