Skip to content

LG-8514: Log a more descriptive location search error#7675

Closed
tomas-nava wants to merge 1 commit intomainfrom
tomas/lg-8514-log-more-descriptive-error
Closed

LG-8514: Log a more descriptive location search error#7675
tomas-nava wants to merge 1 commit intomainfrom
tomas/lg-8514-log-more-descriptive-error

Conversation

@tomas-nava
Copy link
Contributor

@tomas-nava tomas-nava commented Jan 20, 2023

🎫 Ticket

related to LG-8514

🛠 Summary of changes

Logs a more descriptive error when encountered during IPP location search.

📜 Testing Plan

  • Go to dev deployment and force the workflow into PO Search
  • Search for a street intersection that causes a failure: Jay St & Water Street, Brooklyn, NY
  • Check for evidence of error in logs

changelog: Internal, In-person proofing, More descriptive error logging
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +31 to +35
{
error_name: error.class.name,
message: error.message,
source: self.class.name,
}.to_json,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd also add a descriptive key/event name so we can have something to find these by (not sure it's the best name, but the general idea)

Suggested change
{
error_name: error.class.name,
message: error.message,
source: self.class.name,
}.to_json,
{
warning: "UspsLocationsController#index argcis"
error_name: error.class.name,
message: error.message,
source: self.class.name,
}.to_json,

@allthesignals
Copy link
Contributor

Added simple testing plan for this — @tomas-nava ready to merge? happy to to test this out once deployed.

@tomas-nava
Copy link
Contributor Author

I'm going to close this because it was made obsolete by #7695

@tomas-nava tomas-nava closed this Jan 27, 2023
@tomas-nava tomas-nava deleted the tomas/lg-8514-log-more-descriptive-error branch January 27, 2023 23:06
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.

3 participants