log.pl remove useless scope