You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd/tailscaled
Joe Tsai 63b3c82587
ipn/local: log OS-specific diagnostic information as JSON (#11700)
There is an undocumented 16KiB limit for text log messages.
However, the limit for JSON messages is 256KiB.
Even worse, logging JSON as text results in significant overhead
since each double quote needs to be escaped.

Instead, use logger.Logf.JSON to explicitly log the info as JSON.

We also modify osdiag to return the information as structured data
rather than implicitly have the package log on our behalf.
This gives more control to the caller on how to log.

Updates #7802

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
7 months ago
..
childproc
debug.go
depaware.txt
generate.go cmd/mkmanifest, cmd/tailscale, cmd/tailscaled: remove Windows arm32 resources from OSS 2 years ago
install_darwin.go
install_windows.go
manifest_windows_386.syso
manifest_windows_amd64.syso
manifest_windows_arm64.syso
proxy.go
required_version.go
sigpipe.go
ssh.go
taildrop.go
tailscaled.defaults
tailscaled.go
tailscaled.openrc
tailscaled.service
tailscaled_bird.go
tailscaled_notwindows.go
tailscaled_test.go
tailscaled_windows.go ipn/local: log OS-specific diagnostic information as JSON (#11700) 7 months ago
windows-manifest.xml
with_cli.go