Small improvements to logging.