Reverting bad changes to logger.py