From 5e4a115b843e8f2cffb1fe498db1106aa1e7f6f2 Mon Sep 17 00:00:00 2001 From: Stefan Hengl Date: Thu, 24 Oct 2024 09:45:26 +0200 Subject: [PATCH] indexserver: write errors of vacuum to error log This switches the logs for vacuum from debug to error, which matches what we do for merging. Test plan: N/A --- cmd/zoekt-sourcegraph-indexserver/cleanup.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/zoekt-sourcegraph-indexserver/cleanup.go b/cmd/zoekt-sourcegraph-indexserver/cleanup.go index 0d87d676e..79b3fe74c 100644 --- a/cmd/zoekt-sourcegraph-indexserver/cleanup.go +++ b/cmd/zoekt-sourcegraph-indexserver/cleanup.go @@ -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 } @@ -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 } @@ -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) } } }