-
Notifications
You must be signed in to change notification settings - Fork 633
Modify file_size
help doc string
#1401
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
Changes from 7 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6f6c325
Modify `file_size` help doc string
18241ac
Add note to BLFWriter
b26fd57
Revert "Add note to BLFWriter"
a4d04dc
Add in a note about the nuanced file size in help statement
cced4ad
Modify help statement to clarify consistency
87ecc64
Minor tweak
c39719c
Control BLFWriter max container size
3afb140
Fix formatting
42c06be
Update can/logger.py
j-c-cook 6fa459d
Revert "Fix formatting"
053ead4
Revert "Control BLFWriter max container size"
442d484
Merge branch 'LoggerHelpStatement' of https://github.com/j-c-cook/pyt…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@zariiii9003 This would get rid of the nuance. I'm anticipating that you are not going to like the
BLFWriter
specific code inside of theSizedRotatingLogger
constructor, but let me know.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.
Yes, i don't like this here 😄
Also i do not understand what this does tbh, what's the purpose of this? And why is the default value of
kwargs.get('max_container_size', 1)
=1
?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.
If
max_container_size
is not defined then set themax_container_size
. Ifmax_container_size
is not defined then set the value to be128 kb
unless thefile_size
is less than128 kb
. In that case set themax_container_size
to 10% of thefile_size
.I'm reverting the commits because I agree that its not a good location.