-
Notifications
You must be signed in to change notification settings - Fork 14
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
Replacing all the print calls by calls to log #272
Replacing all the print calls by calls to log #272
Conversation
Hello again ! The tests are failing because of Black and isort are failing. Once that is done, the tests will be able to run and we can review your PR :) |
Hi @C4ptainCrunch , I have pushed the changes from pre-commit present in MR #272 . |
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.
Hi,
I did checkout your PR and tried running ./manage.py runserver
but it does not show the warning (you are running Dochub with DEBUG=True
) that comes from https://github.com/UrLab/DocHub/pull/272/files#diff-a319b4e09ca929987f4eadd50f04ac0d0afeebd4ade69e396ffd43fd557baa47L213 but when checkouting main
, it does. So it seems your change from print
to logging.debug
breaks the output. I'm guessing it's due to the logging configuration but i'm not sure.
Could you try to fix this and ensure that the print
your replaced still output text in the terminal ? Thank you !
Hi @C4ptainCrunch , I have made few changes for logging the statements . Now all debug logs are shown in stdout / terminal. Please review and let me know if any other changes are required . |
@amrutha1098 I suggest you to read the django documentation https://docs.djangoproject.com/en/4.1/topics/logging/. There is already a logging system existing in django |
Hi @amrutha1098 ! |
Hi @C4ptainCrunch , currently held up in other work so i am not able to work on this. |
Thank you for letting us know :) I'm closing the PR to clean up a bit the repo, but if you still have time later, feel free to reopen ! |
#267 replacing all the print calls by calls to log