adjust log.py