From 77767f27b0b429510830c3476dddda82d07bb20e Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 6 Feb 2022 20:01:37 +0100 Subject: [PATCH] fixing preview filling job's logs --- benchmark/docker-compose/docker-compose.yml | 2 +- src/backend/model/jobs/jobs/PreviewFillingJob.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/benchmark/docker-compose/docker-compose.yml b/benchmark/docker-compose/docker-compose.yml index 22356cdb..b39b9742 100644 --- a/benchmark/docker-compose/docker-compose.yml +++ b/benchmark/docker-compose/docker-compose.yml @@ -9,7 +9,7 @@ services: volumes: - "./pigallery2/benchmark_config:/app/data/config" # CHANGE ME - "db-benchmark-data:/app/data/db" - - "./pigallery2/images:/app/data/images" # CHANGE ME + - "./pigallery2/images:/app/data/images" # CHANGE ME, ':ro' mean read-only - "./pigallery2/tmp:/app/data/tmp" # CHANGE ME expose: - "80" diff --git a/src/backend/model/jobs/jobs/PreviewFillingJob.ts b/src/backend/model/jobs/jobs/PreviewFillingJob.ts index 87e30045..261dde6b 100644 --- a/src/backend/model/jobs/jobs/PreviewFillingJob.ts +++ b/src/backend/model/jobs/jobs/PreviewFillingJob.ts @@ -20,6 +20,7 @@ export class PreviewFillingJob extends Job { protected async step(): Promise { if (!this.directoryToSetPreview) { + this.Progress.log('Loading Directories to process'); this.directoryToSetPreview = await ObjectManagers.getInstance().PreviewManager.getPartialDirsWithoutPreviews(); this.Progress.Left = this.directoryToSetPreview.length + 2; return true; @@ -65,7 +66,7 @@ export class PreviewFillingJob extends Job { return false; } const directory = this.directoryToSetPreview.shift(); - this.Progress.log('Setting preview: ' + directory.path + '/' + directory.name); + this.Progress.log('Setting preview: ' + directory.path + directory.name); this.Progress.Left = this.directoryToSetPreview.length; await ObjectManagers.getInstance().PreviewManager.setAndGetPreviewForDirectory(directory);