From 6855d8b81d37b87b784a81e5d002d2c0e725b1b3 Mon Sep 17 00:00:00 2001 From: Joachim Van Herwegen Date: Tue, 8 Jun 2021 10:57:19 +0200 Subject: [PATCH] fix: Fix ChainedConverter logging when there are no intermediates --- src/storage/conversion/ChainedConverter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/conversion/ChainedConverter.ts b/src/storage/conversion/ChainedConverter.ts index 0e29679bd..9ef5b5a38 100644 --- a/src/storage/conversion/ChainedConverter.ts +++ b/src/storage/conversion/ChainedConverter.ts @@ -143,7 +143,7 @@ export class ChainedConverter extends RepresentationConverter { } const { path } = match; - this.logger.debug(`Converting ${match.inType} -> ${path.intermediateTypes.join(' -> ')} -> ${match.outType}.`); + this.logger.debug(`Converting ${match.inType} -> ${[ ...path.intermediateTypes, match.outType ].join(' -> ')}.`); const args = { ...input }; for (let i = 0; i < path.converters.length - 1; ++i) {