Added logging for POST /api/data.