tailscale/util/osdiag
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>
2024-04-22 16:45:01 -07:00
..
internal/wsc util/osdiag, util/osdiag/internal/wsc: add code to probe the Windows Security Center for installed software 2023-08-24 11:51:18 -06:00
mksyscall.go util/osdiag: add query for Windows page file configuration and status 2023-08-25 10:31:36 -06:00
osdiag.go ipn/local: log OS-specific diagnostic information as JSON (#11700) 2024-04-22 16:45:01 -07:00
osdiag_notwindows.go ipn/local: log OS-specific diagnostic information as JSON (#11700) 2024-04-22 16:45:01 -07:00
osdiag_windows.go ipn/local: log OS-specific diagnostic information as JSON (#11700) 2024-04-22 16:45:01 -07:00
osdiag_windows_test.go all: import x/exp/maps as xmaps to distinguish from Go 1.21 "maps" 2023-08-17 09:54:18 -07:00
zsyscall_windows.go util/osdiag: add query for Windows page file configuration and status 2023-08-25 10:31:36 -06:00