-
Notifications
You must be signed in to change notification settings - Fork 43
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
Develop #31
base: main
Are you sure you want to change the base?
Develop #31
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.
three_pl.py and adf.py are open to changes along with the comments mentioned.
return | ||
logger.info("Calling validation service") | ||
async with httpx.AsyncClient() as client: # 3 |
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.
exception handling missing
try: | ||
# process the dict |
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 is handled here? you can handle keyerror and valueerror in this
@@ -31,22 +31,26 @@ | |||
you will get the idea about the part when you go through the code. | |||
""" | |||
|
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.
handle exceptions wherever external APIs are used in this file.
fast_api_als/database/db_helper.py
Outdated
@@ -16,6 +16,7 @@ | |||
write a commong function that logs this response code with appropriate context data | |||
""" | |||
|
|||
logger = logging.getLogger() |
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.
use a Module level logger to get usable logs
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 am not able to get the difference between logger and direct logging function of module.
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.
use logger = logging.getLogger(__name__)
in different modules to use a module-level logger
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.
Ok. made the changes
This is done |
No description provided.