Skip to content

Commit

Permalink
indexserver: write errors of vacuum to error log (#848)
Browse files Browse the repository at this point in the history
This switches the logs for vacuum from debug to error, which matches
what we do for merging.

Test plan:
N/A
  • Loading branch information
stefanhengl authored Oct 24, 2024
1 parent d64e931 commit 9bdc562
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/zoekt-sourcegraph-indexserver/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func (s *Server) vacuum() {
path := filepath.Join(s.IndexDir, fn)
info, err := os.Stat(path)
if err != nil {
debug.Printf("vacuum stat failed: %v", err)
log.Printf("vacuum stat failed: %v", err)
continue
}

Expand All @@ -422,7 +422,7 @@ func (s *Server) vacuum() {
})

if err != nil {
debug.Printf("failed to explode compound shard %s: %s", path, string(b))
log.Printf("failed to explode compound shard %s: %s", path, string(b))
}
continue
}
Expand All @@ -432,7 +432,7 @@ func (s *Server) vacuum() {
})

if err != nil {
debug.Printf("error while removing tombstones in %s: %s", fn, err)
log.Printf("error while removing tombstones in %s: %s", fn, err)
}
}
}
Expand Down

0 comments on commit 9bdc562

Please sign in to comment.