change log to request and sql prints

This commit is contained in:
Christoph Kluge
2024-10-29 18:39:23 +01:00
parent c4a901504d
commit 597ee1dad7
2 changed files with 4 additions and 1 deletions

View File

@@ -235,6 +235,9 @@ func (r *JobRepository) Find(
q = q.Where("job.start_time = ?", *startTime)
}
s, _, _ := q.ToSql()
log.Printf("trying to find db job with query: %s", s)
log.Debugf("Timer Find %s", time.Since(start))
return scanJob(q.RunWith(r.stmtCache).QueryRow())
}