Explorar el Código

[update]添加baselog Apscheduler需要日志

jhao104 hace 9 años
padre
commit
878343fc9b
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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):
     """