refactor(core): Use logger for packages/cli messages (no-changelog) (#9302)

This commit is contained in:
Iván Ovejero
2024-05-03 15:24:27 +02:00
committed by GitHub
parent b65e0e2811
commit 7bda92cc7c
15 changed files with 63 additions and 46 deletions

View File

@@ -180,7 +180,7 @@ export class MessageEventBusDestinationWebhook
try {
JSON.parse(this.jsonQuery);
} catch {
console.log('JSON parameter need to be an valid JSON');
this.logger.error('JSON parameter need to be an valid JSON');
}
this.axiosRequestOptions.params = jsonParse(this.jsonQuery);
}
@@ -198,7 +198,7 @@ export class MessageEventBusDestinationWebhook
try {
JSON.parse(this.jsonHeaders);
} catch {
console.log('JSON parameter need to be an valid JSON');
this.logger.error('JSON parameter need to be an valid JSON');
}
this.axiosRequestOptions.headers = jsonParse(this.jsonHeaders);
}