add logging to build log collector
...otherwise it's impossible to tell what it's doing
@@ -142,9 +142,14 @@ func (br *buildLogCollector) Run(ctx context.Context) error {
}
if len(buildIDsToDelete) == 0 {
+ logger.Debug("no-builds-to-reap")
continue
}
+ logger.Debug("reaping-builds", lager.Data{
+ "build-ids": buildIDsToDelete,
+ })
+
err = pipeline.DeleteBuildEventsByBuildIDs(buildIDsToDelete)
if err != nil {
logger.Error("failed-to-delete-build-events", err)
