optimise runlog of spider.py