Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
telemetry: in Start skip uploading in certain cases
It's possible for telemetry.LocalDir to not be set, which, depending on the platform, could happen if there's no home or AppData directory. Handle that case by skipping uploading so we don't end up writing the upload.token file to the user's current directory. (There would be no counters to upload anyway if there's no local directory). Also, if telemetry.Mode() is "off" or "local" we don't do uploads, so unless telemetry.Mode() is "on" don't attempt to do an upload. Fixes golang/go#66111, golang/go#66099 Change-Id: I6b30835a1d3a147b2f94d97f13a2b793217b2639 Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/569217 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Robert Findley <[email protected]>
- Loading branch information