chore: remove verbose console logs to reduce spam

This commit is contained in:
2026-04-08 15:32:20 +02:00
parent 91ac10acb8
commit fd9aca9ffc
2 changed files with 3 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ func RunMigrations(db *sql.DB) error {
return err return err
} }
if exists > 0 { if exists > 0 {
log.Printf("migration %s already applied, skipping", migrationFile) // already applied, skipping silently
continue continue
} }

View File

@@ -44,18 +44,15 @@ func (w *Worker) syncRelations(ctx context.Context) {
// Find up to 20 anime that need their relations synced // Find up to 20 anime that need their relations synced
animes, err := w.db.GetAnimeNeedingRelationSync(ctx) animes, err := w.db.GetAnimeNeedingRelationSync(ctx)
if err != nil { if err != nil {
log.Printf("worker: failed to get anime needing sync: %v", err) log.Printf("worker error: failed to get anime needing sync: %v", err)
return return
} }
if len(animes) == 0 { if len(animes) == 0 {
log.Println("worker: no new anime relations to sync at this time") return // silent heartbeat
return
} }
for _, a := range animes { for _, a := range animes {
log.Printf("worker: syncing relations for anime %d (%s)", a.ID, a.TitleOriginal)
func() { func() {
// Always mark as synced and sleep so the queue advances even on error. // Always mark as synced and sleep so the queue advances even on error.
defer func() { defer func() {