Skip to content
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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Develop #31

wants to merge 8 commits into from

Conversation

vaibhav-ti
Copy link

No description provided.

Copy link

@naman-TI naman-TI left a 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

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

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.
"""

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.

@@ -16,6 +16,7 @@
write a commong function that logs this response code with appropriate context data
"""

logger = logging.getLogger()

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

Copy link
Author

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.

Copy link

@naman-TI naman-TI Dec 15, 2022

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. made the changes

@naman-TI
Copy link

This is done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants