mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Use logger for packages/cli messages (no-changelog) (#9302)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user