summaryrefslogtreecommitdiff
path: root/java/testing.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2024-11-19 22:08:19 -0800
committer Colin Cross <ccross@android.com> 2024-11-20 11:50:14 -0800
commitcdeb7bbd4285d7618ae5ffff9b0ac5f3a26fca5d (patch)
tree66a82d0b816f9a6dac4160578fed6d2323ec99de /java/testing.go
parentf6978173131245bac18297e4ee5d43d74ffc9ed5 (diff)
Flush verbose log every second
The gzipped verbose log can buffer for an arbitrarily long time, which could lose logs in case of a crash, and is annoying when trying to see the ouptut while the build is still running. Move the writes to the verbose log to a goroutine that also calls gzip.Writer.Flush() every second to make sure the file on disk is as up to date as possible. Test: manual Change-Id: Ib66dad85bbf409bc8327fe11fd78667952de9138
Diffstat (limited to 'java/testing.go')
0 files changed, 0 insertions, 0 deletions