refactor(services): remove debug logging and fix directory scanning

- Remove debug printf statements from media scanner and worker
- Remove unused debug tracking variables (filesSeen, filesProcessed)
- Fix directory walk logic to properly scan the root directory itself
  (previous implementation would skip the root path entirely)

Clean up production code by removing debug artifacts and improving
the directory scanning logic to handle root-level directories correctly.
This commit is contained in:
2026-03-06 10:48:36 -05:00
parent c5c7f50aac
commit 821cd3df4c
2 changed files with 4 additions and 12 deletions
-3
View File
@@ -910,9 +910,6 @@ func (w *Worker) processDirectoryScanJob(job *Job) (interface{}, error) {
}
// Now scan the directory
scanner.scanDirectory(ctx, directory)
// Debug logging
fmt.Printf("DEBUG: scanDirectory completed - totalFiles: %d, newItems: %d, errors: %d\n",
scanner.totalFiles, scanner.newItems, scanner.errors)
// Return scan results
return &DirectoryScanJobResult{