Fix convenience webpap function. Fix logging.