Cleanup some logging bits.