mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2024-12-24 03:42:43 -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 threading
|
||||||
import time
|
import time
|
||||||
from hashlib import sha1
|
from hashlib import sha1
|
||||||
|
import logging
|
||||||
|
logger = logging.getLogger("apns")
|
||||||
|
|
||||||
import tlslite
|
import tlslite
|
||||||
if tlslite.__version__ != "0.8.0-alpha43":
|
if tlslite.__version__ != "0.8.0-alpha43":
|
||||||
print("WARNING: tlslite-ng is not the correct version!")
|
logger.warning("tlslite-ng is not the correct version!")
|
||||||
print("Please install tlslite-ng==0.8.0a43 or you will experience issues!!!")
|
logger.warning("Please install tlslite-ng==0.8.0a43 or you will experience issues!")
|
||||||
|
|
||||||
import albert
|
import albert
|
||||||
import bags
|
import bags
|
||||||
|
|
Loading…
Reference in a new issue