Skip to content

Commit

Permalink
changed the log from debug level to exeception, added response and bo…
Browse files Browse the repository at this point in the history
…dy content to the log
  • Loading branch information
jdickson0296 committed Oct 25, 2023
1 parent 19d1ac0 commit 6ee9cf8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions octodns_ns1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6ee9cf8

Please sign in to comment.