Mar-26-2022, 05:18 AM
Hi
While running my code, I encounter this kind of warnings:
While running my code, I encounter this kind of warnings:
[WARNING] - Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe5bb9be630>: Failed to establish a new connection: [Errno 111] Connection refused')'How to ignore them while logging?
import warnings warnings.filterwarnings("ignore")does not work as well as
logging.getLogger("urllib3").setLevel(logging.CRITICAL)