Skip to content

Commit

Permalink
feat: Log Hubspot cookie creation (#4778)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan authored Oct 29, 2024
1 parent 13494b6 commit 960def4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions api/integrations/lead_tracking/hubspot/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def get_contact(self, user: FFAdminUser) -> None | dict[str, Any]:
def create_lead_form(
self, user: FFAdminUser, hubspot_cookie: str
) -> dict[str, Any]:
logger.info(
f"Creating Hubspot lead form for user {user.email} with hubspot cookie {hubspot_cookie}"
)
fields = [
{
"objectTypeId": "0-1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ def test_create_lead_form_error(
# Then
assert response == {"error": "Problem processing."}
assert inspecting_handler.messages == [
"Creating Hubspot lead form for user [email protected] with hubspot cookie test_hubspot_cookie",
"Problem posting data to Hubspot's form API due to 400 status code and following response: "
+ '{"error": "Problem processing."}'
+ '{"error": "Problem processing."}',
]


Expand Down

0 comments on commit 960def4

Please sign in to comment.