Fix up some logging.