Fix logging a bit.