Add debug output

This commit is contained in:
Jan Eitzinger 2024-09-06 11:24:54 +02:00
parent 7c33dcf630
commit 5482b9be2c

View File

@ -47,9 +47,10 @@ func RegisterFootprintWorker() {
scopes = append(scopes, schema.MetricScopeAccelerator) scopes = append(scopes, schema.MetricScopeAccelerator)
for _, job := range jobs { for _, job := range jobs {
log.Debugf("Try job %d", job.JobID)
jobData, err := metricDataDispatcher.LoadData(job, allMetrics, scopes, context.Background()) jobData, err := metricDataDispatcher.LoadData(job, allMetrics, scopes, context.Background())
if err != nil { if err != nil {
log.Error("Error wile loading job data for footprint update") log.Errorf("Error wile loading job data for footprint update: %v", err)
continue continue
} }
@ -107,6 +108,7 @@ func RegisterFootprintWorker() {
// log.Errorf("Update job (dbid: %d) failed at db execute: %s", job.ID, err.Error()) // log.Errorf("Update job (dbid: %d) failed at db execute: %s", job.ID, err.Error())
// continue // continue
// } // }
log.Debugf("Finish job %d", job.JobID)
} }
jobRepo.TransactionCommit(t) jobRepo.TransactionCommit(t)