From 84f1ec3f7b7601485af9778c8526051492af6eb0 Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 16 Jul 2021 16:29:52 -0500 Subject: [PATCH] fix: disable verbose logger The default configuration of this is logging sensitive information. This fix is guided as for the ofitial documentation about library loggers https://docs.python-guide.org/writing/logging/#logging-in-a-library --- openpay/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openpay/util.py b/openpay/util.py index 40de5d8..82f5348 100644 --- a/openpay/util.py +++ b/openpay/util.py @@ -3,6 +3,7 @@ import sys logger = logging.getLogger('stripe') +logger.addHandler(logging.NullHandler()) # https://docs.python-guide.org/writing/logging/#logging-in-a-library __all__ = ['utf8']