Skip to content

Commit

Permalink
chore(server): improved scanner debug logs for media
Browse files Browse the repository at this point in the history
  • Loading branch information
ADRFranklin committed Jun 10, 2024
1 parent 6a84b1f commit d647cd7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions server/src/services/scanner/scanner-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ export class ScannerService {
return undefined;
}
const details = detailsResult.unwrap();
this.logger.debug(`Syncing movie ${movie.title}`);
this.logger.debug(
{ id: movie.id, providerId: movie.providers.tmdb, name: movie.title },
`Syncing movie`,
);
return await this.movieRepository.updateOrCreate(
MovieEntity.create({
...details.getProps(),
Expand Down Expand Up @@ -180,7 +183,10 @@ export class ScannerService {
return undefined;
}
const details = detailsResult.unwrap();
this.logger.debug(`Syncing show '${show.title}'`);
this.logger.debug(
{ id: show.id, providerId: show.providers.tmdb, name: show.title },
`Syncing show'`,
);
return await this.showRepository.updateOrCreate(
ShowEntity.create({
...details.getProps(),
Expand Down

0 comments on commit d647cd7

Please sign in to comment.