Add some logging to the new producer
Add some tests