Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private void maybeLogForSuccessAfterRetries(int initialAttempt, String action) {
action,
blobStore.bucket(),
blobKey,
purpose,
purpose.getKey(),
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Irrelevant to this PR. But it's too trivial to have its own PR.

attempt - initialAttempt
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,15 @@ public String toString() {
}

public Releasable capturing(Class<?>... classes) {
return appendToLoggers(Arrays.stream(classes).map(LogManager::getLogger).toList());
}

public Releasable capturing(String... names) {
return appendToLoggers(Arrays.stream(names).map(LogManager::getLogger).toList());
}

private Releasable appendToLoggers(List<Logger> loggers) {
start();
final var loggers = Arrays.stream(classes).map(LogManager::getLogger).toArray(Logger[]::new);
for (final var logger : loggers) {
Loggers.addAppender(logger, this);
}
Expand Down