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

Commit

Permalink
Change log level in vacuum engine
Browse files Browse the repository at this point in the history
The vacuum engine was emitting too verbose logs.
  • Loading branch information
jgpruitt committed Oct 21, 2022
1 parent 1d7be7c commit b5a2566
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
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
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

0 comments on commit b5a2566

Please sign in to comment.