From 3387e6fc39234de68fcbbdf3808ae916c2156c0b Mon Sep 17 00:00:00 2001 From: Thu Vo Date: Tue, 7 Feb 2023 15:21:09 +0700 Subject: [PATCH] JSON stringify errors to view more info of params (#3033) --- src/lib/services/openapi-service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/services/openapi-service.ts b/src/lib/services/openapi-service.ts index fd938b1914..89b6f5f016 100644 --- a/src/lib/services/openapi-service.ts +++ b/src/lib/services/openapi-service.ts @@ -74,7 +74,10 @@ export class OpenApiService { const errors = validateSchema(schema, data); if (errors) { - this.logger.debug('Invalid response:', errors); + this.logger.debug( + 'Invalid response:', + JSON.stringify(errors, null, 4), + ); } Object.entries(headers).forEach(([header, value]) =>