added debug for headers received

This commit is contained in:
cpu
2025-03-28 02:35:07 +01:00
parent 4f46c1be99
commit 13a16d71f8
2 changed files with 7 additions and 0 deletions

View File

@@ -222,6 +222,12 @@ app.get('/flic-webhook', authenticateFlicRequest, async (req, res) => {
// Get click_type from query parameter instead of request body
const click_type = req.query.click_type;
// Debug: Log all headers received from Flic
console.log('DEBUG - All headers received:');
Object.keys(req.headers).forEach(headerName => {
console.log(` ${headerName}: ${req.headers[headerName]}`);
});
console.log(`Received GET webhook: Button=${buttonName}, Type=${click_type}, Timestamp=${timestamp || 'N/A'}`);
// Basic validation