From e7a7ebefa4420accf755b36ada2eba8a407f871a Mon Sep 17 00:00:00 2001 From: Richard Marmorstein <52928443+richardm-stripe@users.noreply.github.com> Date: Fri, 8 Dec 2023 11:37:15 -0800 Subject: [PATCH] Undo logger change that broke master but wasn't reverted in beta (#1164) --- stripe/_util.py | 4 ++-- tests/test_util.py | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/stripe/_util.py b/stripe/_util.py index 53eb035a7..2cfa0f831 100644 --- a/stripe/_util.py +++ b/stripe/_util.py @@ -111,14 +111,14 @@ def log_debug(message, **params): msg = logfmt(dict(message=message, **params)) if _console_log_level() == "debug": print(msg, file=sys.stderr) - logger.debug(msg, params) + logger.debug(msg) def log_info(message, **params): msg = logfmt(dict(message=message, **params)) if _console_log_level() in ["debug", "info"]: print(msg, file=sys.stderr) - logger.info(msg, params) + logger.info(msg) def _test_or_live_environment(): diff --git a/tests/test_util.py b/tests/test_util.py index f9642dc6d..d56d149fc 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -62,9 +62,7 @@ def log_test_loop(self, test_cases, logging_func, logger_name, mocker): ) else: print_mock.assert_not_called() - logger_mock.assert_called_once_with( - "message='foo \\nbar' y=3", {"y": 3} - ) + logger_mock.assert_called_once_with("message='foo \\nbar' y=3") finally: mocker.stopall()