-
Notifications
You must be signed in to change notification settings - Fork 7
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
Issue/executor log cleanup #8000
Conversation
@@ -245,7 +245,7 @@ async def get(self, member_id: TPoolID) -> TPoolMember: | |||
""" | |||
Returns a valid pool member for the given id | |||
""" | |||
LOGGER.debug("%s: requesting %s", self.my_name(), self.render_id(member_id)) | |||
LOGGER.log(LOG_LEVEL_TRACE, "%s: requesting %s", self.my_name(), self.render_id(member_id)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference between this log level trace and the debug level? I'm unsure to see when to use one over the other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trace is one level lower than debug.
The reason I reduced this that for every call to an executor (and they happen A LOT),
- for a cache hit we get two log lines at debug level, extremely close together. (requesting and found)
- for a cache miss we also get 2 (requested and creating) but not one when it is done creating.
So this log line is at trace, in order to debug locking issues, which should be extremely rare.
Processing this pull request |
Merged into branches master in ce4de1a |
# Description Final log cleanup, based on working with systemtenant closes #7692 # Self Check: Strike through any lines that are not applicable (`~~line~~`) then check the box - [x] Attached issue to pull request - [x] Changelog entry - [x] Type annotations are present - [x] Code is clear and sufficiently documented - [x] No (preventable) type errors (check using make mypy or make mypy-diff) - [x] Sufficient test cases (reproduces the bug/tests the requested feature) - [x] Correct, in line with design - [ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: ) - [ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)
Description
Final log cleanup, based on working with systemtenant
closes #7692
Self Check:
Strike through any lines that are not applicable (
~~line~~
) then check the box