Fix up logging.