Reduce debug verbosity

This commit is contained in:
Ilya Etingof 2019-09-27 10:49:16 +02:00
parent 315dabaf52
commit 3dc59bb50f
2 changed files with 5 additions and 3 deletions

View File

@ -56,8 +56,8 @@ def http_call(conn, method, *args, **kwargs):
retry_after = _to_datetime(retry_after)
sleep_for = max(0, (retry_after - datetime.now()).total_seconds())
LOG.info('Sleeping for %d secs before retrying HTTP GET '
'%s', sleep_for, location)
LOG.debug('Sleeping for %d secs before retrying HTTP GET '
'%s', sleep_for, location)
time.sleep(sleep_for)

View File

@ -126,7 +126,9 @@ VFDD\
sushy_task_poll_period=1)
LOG.info("Set boot device to %(device)s via "
"Dell OEM magic spell", {'device': device})
"Dell OEM magic spell (%(retries)d "
"retries)", {'device': device,
'retries': self.RETRY_COUNT - attempts})
return response