fix logtail.py