log/logheap: change to POST to a URL instead of logging

It's too big to log.
This commit is contained in:
Brad Fitzpatrick
2020-06-12 10:12:35 -07:00
parent 51f421946f
commit 8edcab04d5
4 changed files with 28 additions and 67 deletions

View File

@@ -593,7 +593,7 @@ func (c *Direct) PollNetMap(ctx context.Context, maxPolls int, cb func(*NetworkM
lastDERPMap = resp.DERPMap
}
if resp.Debug != nil && resp.Debug.LogHeapPprof {
logheap.LogHeap()
go logheap.LogHeap(resp.Debug.LogHeapURL)
}
nm := &NetworkMap{