Fix logging stuff.