Add JSON.stringify(data?.errors)
This commit is contained in:
parent
a1f7931de7
commit
a83c440284
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -21,7 +21,7 @@ const fetchBlockedIPs = async () => {
|
||||||
log('log', `Fetched ${events.length} events from Cloudflare`);
|
log('log', `Fetched ${events.length} events from Cloudflare`);
|
||||||
return events;
|
return events;
|
||||||
} else {
|
} else {
|
||||||
log('error', `Failed to retrieve data from Cloudflare. Status: ${status}`, data?.errors);
|
log('error', `Failed to retrieve data from Cloudflare (status ${status}); ${JSON.stringify(data?.errors)}`);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue