-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Fixing most of the logging errors + typo and fixes grave security things #438
Conversation
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.
Hey @Dhruvacube, thanks for contributing to Auto-DL. I like that you added the necessary log messages at the appropriate place. Although I think you could roll back a few things.
- Like it was better to have the
logging.py
since that acts as a global configuration and we then don't need to havelogging.basicConfig
in each file. - The docstrings in files like
asgi.py
,settings.py
, etc. let's keep them as they were. - Finally, we are using
black
for python code formatting so you could use that instead ofautopep8
SECURE_HSTS_SECONDS = 31536000 | ||
SECURE_HSTS_INCLUDE_SUBDOMAINS = True | ||
SECURE_HSTS_PRELOAD = True | ||
SECURE_REFERRER_POLICY = "same-origin" |
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 really liked the implementation of the PRODUCTION_SERVER configurations. Thanks ✌️
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.
thanks! I have doing this for many django app, since I read their security docs
Also, it better if you could have separate PRs one for each issue since we have been following that and it makes it easier for us to review the code |
ohh okay |
I could but you know that unless one pr gets merged I can't make the other one since it will reflect in the existing pr. so thats why I resolved them all into one |
hey @RusherRG before I pushes the changes I want to ask that do |
You can create checkout the main branch into multiple branches on your fork and commit changes corresponding to one particular issue in a branch. Something like the following.
|
ohhh okay |
We need to log the messages to the console as well as the files as it was configured in |
hmmm okay!! no problem ! then lemme check some portions of the docs since tbh I don't use logging that much |
hey @RusherRG I am adding all the log issues to one pr and then rest in another since, in one commit I did all the logging changes |
Pull Request
What does this PR do?
Fixes #338 #337 #434 #312
This PR fixes most of the logging issues, and also I found some security issues like
printing of GitHub access token
in the console alsousage of print function for debugging
:) This PR alsoremoves the need of the logging.py file
.Also there was a typo is the
README.md
file, it also fixes that :)Also all the
python file are formatted with autopep8
.NOTE: I am coming from
Hacktoberfest
:)What part does this affect?
README.md
Before submitting
black
and/orprettier
)PR review
Anyone in the community is free to review the PR once the tests have passed.
Thank you for contributing to AutoDL. We look forward to your continued support.