Fix logging so we can actually debug this...