Skip to content

bb2-5332 add logging - #1786

Open
BenColeCode wants to merge 5 commits into
masterfrom
bencolecode/bb2-5332-add-logging
Open

BenColeCode wants to merge 5 commits into
masterfrom
bencolecode/bb2-5332-add-logging

Conversation

@BenColeCode

Copy link
Copy Markdown
Contributor

JIRA Ticket:
BB2-5332

What Does This PR Do?

Adds status code logging to relationships endpoint

What Should Reviewers Watch For?

Does this log the status of requests?

If you're reviewing this PR, please check for these things in particular:

Validation

make a request to the endpoint and check the logs

What Security Implications Does This PR Have?

Please indicate if this PR does any of the following:

  • Adds any new software dependencies
  • Modifies any security controls
  • Adds new transmission or storage of data
  • Any other changes that could possibly affect security?
  • Yes, one or more of the above security implications apply. This PR must not be merged without the ISSO or team
    security engineer's approval.

Any Migrations?

  • Yes, there are migrations
    • The migrations should be run PRIOR to the code being deployed
    • The migrations should be run AFTER the code is deployed
    • There is a more complicated migration plan (downtime,
      etc)
  • No migrations

verify=self.verify_ssl_internal,
)

logger.info({'Status of Request':response.status_code})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's update this so it aligns with how other logs output 'response_code', and also some indication that it's the status_code for the relationships retrieval call

@JamesDemeryNava JamesDemeryNava left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Log appears as expected, let's add some more detail and conform with logging patterns.

This branch has not been deployed

No deployments
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