Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Downgrade noisy info logs #6041

Merged
merged 2 commits into from
May 18, 2022
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
6 changes: 6 additions & 0 deletions changelog/@unreleased/pr-6041.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: improvement
improvement:
description: '`Lock request timed out` and `All references currently watched` log
lines have been downgraded from `INFO` to `DEBUG`.'
links:
- https://github.com/palantir/atlasdb/pull/6041
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ private void registerCompletionHandlers() {
unlockAll();
});
result.onTimeout(() -> {
log.info("Lock request timed out", SafeArg.of("requestId", requestId));
if (log.isDebugEnabled()) {
log.debug("Lock request timed out", SafeArg.of("requestId", requestId));
}
unlockAll();
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,12 @@ public void startWatching(LockWatchRequest locksToWatch) {
UnsafeArg.of("references", changedWatches.references())));
changes.ifPresent(this::logLockWatchEvent);
Set<LockWatchReference> allReferences = watches.get().references();
log.info(
"All references currently watched",
SafeArg.of("sizeOfReferences", allReferences.size()),
UnsafeArg.of("allWatchedTables", allReferences));
if (log.isDebugEnabled()) {
log.debug(
"All references currently watched",
SafeArg.of("sizeOfReferences", allReferences.size()),
UnsafeArg.of("allWatchedTables", allReferences));
}
}

@Override
Expand Down