From a85d6df823bbd7c43ee0a704bc0c604023825282 Mon Sep 17 00:00:00 2001 From: Eric Peterson Date: Tue, 27 Jul 2021 16:15:32 +0200 Subject: [PATCH] Use verbose level when migrating docs so that techdocs-cli will display when --verbose flag is used. Signed-off-by: Eric Peterson --- packages/techdocs-common/src/stages/publish/awsS3.ts | 2 +- packages/techdocs-common/src/stages/publish/azureBlobStorage.ts | 2 +- packages/techdocs-common/src/stages/publish/local.ts | 2 +- .../src/stages/publish/migrations/GoogleMigration.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/techdocs-common/src/stages/publish/awsS3.ts b/packages/techdocs-common/src/stages/publish/awsS3.ts index 2942e33380..7bdc91ffd4 100644 --- a/packages/techdocs-common/src/stages/publish/awsS3.ts +++ b/packages/techdocs-common/src/stages/publish/awsS3.ts @@ -337,7 +337,7 @@ export class AwsS3Publish implements PublisherBase { } try { - this.logger.debug(`Migrating ${file}`); + this.logger.verbose(`Migrating ${file}`); await this.storageClient .copyObject({ Bucket: this.bucketName, diff --git a/packages/techdocs-common/src/stages/publish/azureBlobStorage.ts b/packages/techdocs-common/src/stages/publish/azureBlobStorage.ts index 7ee67a0016..fe8fe9c2ce 100644 --- a/packages/techdocs-common/src/stages/publish/azureBlobStorage.ts +++ b/packages/techdocs-common/src/stages/publish/azureBlobStorage.ts @@ -323,7 +323,7 @@ export class AzureBlobStoragePublish implements PublisherBase { if (originalPath === newPath) return; try { - this.logger.debug(`Migrating ${originalPath}`); + this.logger.verbose(`Migrating ${originalPath}`); await this.renameBlob(originalPath, newPath, removeOriginal); } catch (e) { this.logger.warn(`Unable to migrate ${originalPath}: ${e.message}`); diff --git a/packages/techdocs-common/src/stages/publish/local.ts b/packages/techdocs-common/src/stages/publish/local.ts index 3414d273dd..24af34932f 100644 --- a/packages/techdocs-common/src/stages/publish/local.ts +++ b/packages/techdocs-common/src/stages/publish/local.ts @@ -196,7 +196,7 @@ export class LocalPublish implements PublisherBase { // Otherwise, copy or move the file. await new Promise(resolve => { const migrate = removeOriginal ? fs.move : fs.copyFile; - this.logger.debug(`Migrating ${relativeFile}`); + this.logger.verbose(`Migrating ${relativeFile}`); migrate(file, newFile, err => { if (err) { this.logger.warn( diff --git a/packages/techdocs-common/src/stages/publish/migrations/GoogleMigration.ts b/packages/techdocs-common/src/stages/publish/migrations/GoogleMigration.ts index cc35b351ea..192cefbfe2 100644 --- a/packages/techdocs-common/src/stages/publish/migrations/GoogleMigration.ts +++ b/packages/techdocs-common/src/stages/publish/migrations/GoogleMigration.ts @@ -64,7 +64,7 @@ export class MigrateWriteStream extends Writable { const migrate = this.removeOriginal ? file.move.bind(file) : file.copy.bind(file); - this.logger.debug(`Migrating ${file.name}`); + this.logger.verbose(`Migrating ${file.name}`); migrate(newFile) .catch(e => this.logger.warn(`Unable to migrate ${file.name}: ${e.message}`),