Adjust code to latest changes in logging.