From 73fe5de93633733a4b8b345e01036ea3912a959b Mon Sep 17 00:00:00 2001 From: Timon Back Date: Fri, 16 Jun 2023 14:51:37 +0200 Subject: [PATCH] fix: Print js object using json during publishing --- springwolf-ui/src/app/shared/publisher.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/springwolf-ui/src/app/shared/publisher.service.ts b/springwolf-ui/src/app/shared/publisher.service.ts index 8c824627d..63c9d7c18 100644 --- a/springwolf-ui/src/app/shared/publisher.service.ts +++ b/springwolf-ui/src/app/shared/publisher.service.ts @@ -12,7 +12,7 @@ export class PublisherService { const url = Endpoints.getPublishEndpoint(protocol); const params = new HttpParams().set('topic', topic); const body = {payload, headers, bindings}; - console.log(`Publishing to ${url} with messageBinding ${bindings} and headers ${headers}: ${body}`); + console.log(`Publishing to ${url} with messageBinding ${JSON.stringify(bindings)} and headers ${JSON.stringify(headers)}: ${JSON.stringify(body)}`); return this.http.post(url, body, { params }); }