Fix logging

I have no idea why it wasn't working right, but it is now.
So.... yay?