A few logging improvements.