added logging for x-api-key