in src/tools/WebhookLogger.ts [28:38]
async debug(message: string, tag?: string) {
if (this.logLevel === IOTC_LOGGING.ALL) {
await fetch(this.url, {
method: 'POST',
body: `DEBUG${tag ? ` - ${tag.toUpperCase()}` : ''}: ${message}`,
headers: {
'Content-Type': 'text/plain',
},
});
}
}