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

Change log level in vacuum engine #1715

Merged
merged 1 commit into from
Oct 21, 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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ We use the following categories for changes:

## Unreleased

### Added

### Changed
- Reduced the verbosity of the logs emitted by the vacuum engine [#1715]

### Fixed


## [0.16.0] - 2022-10-20

### Added
Expand Down
4 changes: 2 additions & 2 deletions pkg/vacuum/vacuum.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (e *Engine) Run(ctx context.Context) {
return
}
if !acquired {
log.Info("msg", "vacuum engine did not acquire advisory lock")
log.Debug("msg", "vacuum engine did not acquire advisory lock")
return
}
// release the advisory lock when we're done
Expand Down Expand Up @@ -213,7 +213,7 @@ func runWorkers(ctx context.Context, parallelism int, chunks []string, worker fu
// worker pulls chunks from a channel and vacuums them
func (e *Engine) worker(ctx context.Context, id int, todo <-chan string) {
for chunk := range todo {
log.Info("msg", "vacuuming a chunk", "worker", id, "chunk", chunk)
log.Debug("msg", "vacuuming a chunk", "worker", id, "chunk", chunk)
sql := fmt.Sprintf(sqlVacuumFmt, chunk)
_, err := e.pool.Exec(ctx, sql)
if err != nil {
Expand Down