[core] Adjust logs
This commit is contained in:
1 parent
b488b9f1df
commit
003bc33c25
2 files changed
+3
-3
No files matched your search
@@ -390,7 +390,7 @@ export class WhatsappSessionWebJSCore extends WhatsappSession {
|
||||
// show it as ABCD-ABCD
|
||||
const parts = splitAt(code, 4);
|
||||
const codeRepr = parts.join('-');
|
||||
this.logger.info(`Your code: ${codeRepr}`);
|
||||
this.logger.debug(`Your code: ${codeRepr}`);
|
||||
return { code: codeRepr };
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ export class WebhookSenderCore extends WebhookSender {
|
||||
send(json: any, headers?: Record<string, string>) {
|
||||
this.logger.info(
|
||||
{ id: headers['X-Webhook-Request-Id'], url: this.url },
|
||||
`Sending POST ...`,
|
||||
`Sending POST...`,
|
||||
);
|
||||
this.logger.debug(
|
||||
{ id: headers['X-Webhook-Request-Id'], data: json },
|
||||
@@ -171,7 +171,7 @@ export class WebhookConductorCore implements WebhookConductor {
|
||||
if (!found) {
|
||||
return false;
|
||||
}
|
||||
this.logger.info(`Event '${event}' is enabled for url: ${url}`);
|
||||
this.logger.debug(`Event '${event}' is enabled for url: ${url}`);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user