-
Notifications
You must be signed in to change notification settings - Fork 0
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
cleanup prints #19
cleanup prints #19
Conversation
use logging instead of prints
examples/test_extract.py
Outdated
return 1 | ||
|
||
return 0 | ||
logging.error(f"Error: {e}") |
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.
oh, i thought i disabled f-strings in logging in pylint... this is not ideal, see here: https://pylint.readthedocs.io/en/stable/user_guide/messages/warning/logging-fstring-interpolation.html
examples/test_extract.py
Outdated
@@ -38,5 +36,7 @@ def main(args): | |||
parser.add_argument("-o", "--output-file", type=str, help="Output KRec file path (optional)") | |||
parser.add_argument("-v", "--verbose", action="store_true", help="Enable verbose output") | |||
|
|||
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s") |
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.
actually, you can add colorlogging
as a dependency, it is a small package i wrote to make it easy to configure nice logging: https://pypi.org/project/colorlogging/
setup.py
Outdated
@@ -60,6 +60,7 @@ def run(self) -> None: | |||
), | |||
], | |||
setup_requires=["setuptools-rust"], | |||
install_requires=["colorlogging"], |
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.
put into requirements.txt
not here
I've merged this branch into combine_mkv_overwrite_by_default so we can ignore this branch going forward. |
use logging instead of prints