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

log/logheap: properly document LogHeap as performing HTTP upload #741

Merged
merged 1 commit into from Sep 8, 2020

Conversation

odeke-em
Copy link
Contributor

@odeke-em odeke-em commented Sep 8, 2020

LogHeap no longer logs to os.Stderr and instead uploads
the heap profile by means of an HTTP POST request to the
target URL endpoint.

While here, also ensured that an error from pprof.WriteHeapProfile
isn't ignored and will prevent the HTTP request from being made
if non-nil.


This change is Reviewable

LogHeap no longer logs to os.Stderr and instead uploads
the heap profile by means of an HTTP POST request to the
target URL endpoint.

While here, also ensured that an error from pprof.WriteHeapProfile
isn't ignored and will prevent the HTTP request from being made
if non-nil.

Signed-off-by: Emmanuel T Odeke <emmanuel@orijtech.com>
@bradfitz bradfitz merged commit 688f923 into tailscale:main Sep 8, 2020
@bradfitz
Copy link
Member

bradfitz commented Sep 8, 2020

Oh, hi!

@odeke-em
Copy link
Contributor Author

odeke-em commented Sep 8, 2020

Howdy Brad :) and thank you for the review and merge!

@odeke-em odeke-em deleted the fix-LogHeap-godoc branch September 8, 2020 02:19
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