Skip to content

Commit

Permalink
Log retry attempt entryu only when doing retries (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed May 25, 2023
1 parent c72e30b commit afd22be
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/ansible_compat/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,12 @@ def run( # ruff: disable=PLR0913
if result.returncode == 0:
break
_logger.debug("Environment: %s", env or self.environ)
_logger.warning(
"Retrying execution failure %s of: %s",
result.returncode,
" ".join(args),
)
if retry:
_logger.warning(
"Retrying execution failure %s of: %s",
result.returncode,
" ".join(args),
)
return result

@property
Expand Down

0 comments on commit afd22be

Please sign in to comment.