浏览代码

[update]添加baselog Apscheduler需要日志

jhao104 9 年之前
父节点
当前提交
878343fc9b
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Schedule/ProxyRefreshSchedule.py

+ 3 - 0
Schedule/ProxyRefreshSchedule.py

@@ -16,6 +16,7 @@
 
 import sys
 import time
+import logging
 from threading import Thread
 from apscheduler.schedulers.blocking import BlockingScheduler
 
@@ -27,6 +28,8 @@ from Util.LogHandler import LogHandler
 
 __author__ = 'JHao'
 
+logging.basicConfig()
+
 
 class ProxyRefreshSchedule(ProxyManager):
     """