fix logging base.py