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

Always log response body for pull streams #2085

Merged
merged 2 commits into from
Feb 29, 2024
Merged

Conversation

thomshutt
Copy link
Contributor

What does this pull request do? Explain your changes. (required)

Specific updates (required)

How did you test each of these updates (required)

Does this pull request close any open issues?

Screenshots (optional)

Checklist

  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@thomshutt thomshutt requested a review from a team as a code owner February 29, 2024 14:09
Copy link

vercel bot commented Feb 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
livepeer-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 29, 2024 2:25pm

Copy link
Member

@gioelecerati gioelecerati left a comment

Choose a reason for hiding this comment

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

LGTM - tests are failing due to missing yarn prettier

console.log(
`access-control: gate: webhook=${
webhook.id
} statusCode=${statusCode} respSpanId=${resp.headers.get("X-Tlive-Spanid")} respBody=${Buffer.from(respBody).toString("base64")} duration=${process.hrtime(startTime)[1] / 1e6}ms`
Copy link
Member

Choose a reason for hiding this comment

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

I think this resp could be empty if the try catch fails, it's worth checking or do resp?.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed both of those

@thomshutt thomshutt merged commit 6bc617f into master Feb 29, 2024
10 checks passed
@thomshutt thomshutt deleted the extra-pull-auth-logging branch February 29, 2024 14:26
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.

None yet

2 participants