From 6bbdafd8a14837f40a0aa07abe338b5479f9f590 Mon Sep 17 00:00:00 2001 From: JJTech0130 Date: Sun, 23 Jul 2023 21:28:29 -0400 Subject: [PATCH] use logger for version warning --- apns.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apns.py b/apns.py index c7383b1..4546bad 100644 --- a/apns.py +++ b/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