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

fix: update logging message #301

Closed
wants to merge 1 commit into from
Closed

fix: update logging message #301

wants to merge 1 commit into from

Conversation

mubbsharanwar
Copy link
Contributor

Update the logging message copy by adding an exception message for debugging.

SONIC-794

Merge checklist:
Check off if complete or not applicable:

  • Documentation updated (not only docstrings)
  • Fixup commits are squashed away
  • Unit tests added/updated
  • Manual testing instructions provided
  • Noted any: Concerns, dependencies, migration issues, deadlines, tickets

Post-merge:

Copy link

github-actions bot commented Nov 26, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  commerce_coordinator/apps/lms
  clients.py
Project Total  

This report was generated by python-coverage-comment-action

update loging message copy by adding exception message for debugging

SONIC-794
@@ -118,8 +120,10 @@ def post(self, url, json, line_item_state_payload, logging_obj, timeout=None):
sender=self.__class__,
**fulfill_line_item_state_payload
)
error_message = Json.loads(exc.response.text).get('message')
Copy link
Member

@aht007 aht007 Nov 26, 2024

Choose a reason for hiding this comment

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

The error message is already being logged here. We don't need to modify the logging below IMO as @attiyaIshaque is currently working on improving logging and will be dealing with this too ideally under the scope of her ticket

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In DD logs the error message is missing and we added it.
In the SONIC-794 mentioned that to formate the DD log with the appropriate information.

@mubbsharanwar
Copy link
Contributor Author

Not needed these changes.

@mubbsharanwar mubbsharanwar deleted the manwar/SONIC-794 branch November 29, 2024 06:17
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