Skip to content

Commit 103f100

Browse files
pmkccopybara-github
authored andcommitted
Improve vm_util.Retry Exception logging
PiperOrigin-RevId: 715588640
1 parent e5c2c3b commit 103f100

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

perfkitbenchmarker/vm_util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,9 @@ def WrappedFunction(*args, **kwargs):
387387
raise RetriesExceededRetryError() from e
388388
else:
389389
if log_errors:
390-
logging.info('Retrying exception running %s: %s', f.__name__, e)
390+
logging.info(
391+
'Retrying exception running %s: %s', f.__qualname__, repr(e)
392+
)
391393
time.sleep(sleep_time)
392394

393395
return WrappedFunction

0 commit comments

Comments
 (0)