mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2024-12-23 11:22:42 -06:00
use logger for version warning
This commit is contained in:
parent
c4350584c1
commit
6bbdafd8a1
1 changed files with 4 additions and 2 deletions
6
apns.py
6
apns.py
|
@ -5,11 +5,13 @@ import socket
|
|||
import threading
|
||||
import time
|
||||
from hashlib import sha1
|
||||
import logging
|
||||
logger = logging.getLogger("apns")
|
||||
|
||||
import tlslite
|
||||
if tlslite.__version__ != "0.8.0-alpha43":
|
||||
print("WARNING: tlslite-ng is not the correct version!")
|
||||
print("Please install tlslite-ng==0.8.0a43 or you will experience issues!!!")
|
||||
logger.warning("tlslite-ng is not the correct version!")
|
||||
logger.warning("Please install tlslite-ng==0.8.0a43 or you will experience issues!")
|
||||
|
||||
import albert
|
||||
import bags
|
||||
|
|
Loading…
Reference in a new issue