-
-
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
refactor: Add log messages for BackEndApp/v1 #415
Conversation
@@ -37,7 +39,9 @@ def generate(request): | |||
project_id = request.data.get("project_id") | |||
store_obj = Store(user) | |||
if not store_obj.exist(project_id): | |||
raise Exception("No such project exists") | |||
error_message = "No such project exists" | |||
logger.error(f"[API][POST][generate] {error_message}") |
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.
[API][POST][generate]
Is this supposed to resolve to some string?
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.
Nope. It is a more structured way of logging. This will help in debugging (ex: filtering logs in the shell using grep).
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.
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.
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.
@prajwalnayak7 could you make the necessary changes?
@prajwalnayak7 It would be great if you could alter the log messages to look like the one mentioned by @RusherRG in this discussion |
Hey @prajwalnayak7 closing the PR due to no activity. Please check the slack message in the #announcements channel for more info. Thanks for your contributions! :D |
Pull Request
What does this PR do?
Fixes #337
-->
What part does this affect?
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.