fixed logging

A good argument. I will change...