forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
130158: pkg/util/log: Fix FileSink iteration logic r=arjunmahishi a=arjunmahishi Recently, buffering was introduced in File Sinks. This was done by creating a `bufferdSink` wrapper on top of the existing `FileSink` type. The iterator function that goes over all the configured file sinks, does not recognise the `bufferSink` wrapper. As a result, the iterator was only returning file sinks that are unbuffered. This led to issues like the `debug zip` command not being able to fetch logs for a cluster where the buffering is enabled by default in all the file sinks. Refer to CLOUDOPS-10542 for more details This commit fixes that by handling both types in the iterator function. Part of: CLOUDOPS-10542 Release note: None Co-authored-by: Arjun Mahishi <[email protected]>
- Loading branch information
Showing
2 changed files
with
97 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters