Update proxy.js

This commit is contained in:
shamoon 2024-09-14 23:15:13 -07:00
parent f83e3b0e44
commit e53fe48095

View File

@ -80,8 +80,6 @@ export default async function piholeProxyHandler(req, res) {
headers, headers,
}); });
logger.debug("Pi-hole API response: %d", status, Buffer.from(data).toString("utf8"));
if (status !== 200) { if (status !== 200) {
logger.error("Error calling Pi-Hole API: %d. Data: %s", status, data); logger.error("Error calling Pi-Hole API: %d. Data: %s", status, data);
return res.status(status).json({ error: "Pi-Hole API Error", data }); return res.status(status).json({ error: "Pi-Hole API Error", data });