From 6ee9cf88e915dfa53e55d3af346133ee1712b0df Mon Sep 17 00:00:00 2001 From: Jonathan Dickson Date: Wed, 25 Oct 2023 16:08:51 -0700 Subject: [PATCH] changed the log from debug level to exeception, added response and body content to the log --- octodns_ns1/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/octodns_ns1/__init__.py b/octodns_ns1/__init__.py index b430f7b..1c881c3 100644 --- a/octodns_ns1/__init__.py +++ b/octodns_ns1/__init__.py @@ -284,11 +284,12 @@ def _try(self, method, *args, **kwargs): sleep(period) tries -= 1 except ResourceException as e: - self.log.debug( - "_try: method=%s, args=%s, error=%s", + self.log.exception( + "_try: method=%s, args=%s, response=%s, body=%s", method.__name__, str(args), - e.message, + e.response, + e.body, ) raise