Improve error logging

This makes it much easier to track down erroneous feeds.