Fix some logging.