-
Notifications
You must be signed in to change notification settings - Fork 8
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
Improve logging #24
Improve logging #24
Conversation
Codecov ReportAttention: Patch coverage is
|
@@ -13,7 +13,7 @@ def handle_history_read(config: Config) -> dict: | |||
|
|||
filepath = config.history.file | |||
if not filepath or not filepath.exists(): | |||
logging.warning(f"History file {filepath} does not exist.") | |||
logging.warning("History file %s does not exist.", filepath) |
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's the reason for moving away from f-strings here?
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.
Fixing ruff/pyright linting warning for lazy logging
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.
Interesting.
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.
I believe this is G004. TIL. Are we going to enable that in the pyproject.toml
?
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.
We can. I will add it in another PR.
The --verbose command line switch will enable log in terminal
Add some basic logging configuration to save the logs in a file and output to the terminal as minimal as possible
6833723
to
53383e9
Compare
53383e9
to
c47ca6e
Compare
No description provided.