use logger for version warning

This commit is contained in:
JJTech0130 2023-07-23 21:28:29 -04:00
parent c4350584c1
commit 6bbdafd8a1
No known key found for this signature in database
GPG key ID: 23C92EBCCF8F93D6

View file

@ -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