From 130092e66932715db91d366f56ecb66472ee639d Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 5 Aug 2023 14:10:33 -0700 Subject: [PATCH] python: replace warning with logging --- python/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/__init__.py b/python/__init__.py index 0a7e6e95c..3037f2de6 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -7,7 +7,6 @@ import struct import hashlib import binascii import datetime -import warnings import logging from functools import wraps from typing import Optional @@ -427,7 +426,7 @@ class Panda: if len(serial) == 24: ret.append(serial) else: - warnings.warn(f"found device with panda descriptors but invalid serial: {serial}", RuntimeWarning) + logging.warning(f"found device with panda descriptors but invalid serial: {serial}", RuntimeWarning) except Exception: continue except Exception: