From a1e63668e07cace023a8c042e77bb36b52e42d8d Mon Sep 17 00:00:00 2001 From: gitankit7 <34441936+gitankit7@users.noreply.github.com> Date: Mon, 13 May 2024 12:48:43 +0530 Subject: [PATCH] feat: add modelName to warning log (#1997) --- src/helpers/CommonModelToMetaModel.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/helpers/CommonModelToMetaModel.ts b/src/helpers/CommonModelToMetaModel.ts index 946681b714..a0ce4d1d44 100644 --- a/src/helpers/CommonModelToMetaModel.ts +++ b/src/helpers/CommonModelToMetaModel.ts @@ -121,7 +121,9 @@ export function convertToMetaModel( if (booleanModel !== undefined) { return booleanModel; } - Logger.warn('Failed to convert to MetaModel, defaulting to AnyModel'); + Logger.warn( + `Failed to convert ${modelName} to MetaModel, defaulting to AnyModel` + ); return new AnyModel( modelName, jsonSchemaModel.originalInput,