Merge pull request #16857 from donaldsharp/logger_warning

tests: use logger.warning not logger.warn
This commit is contained in:
Mark Stapp 2024-09-18 14:52:41 -04:00 committed by GitHub
commit f07579254a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -936,7 +936,7 @@ def generate_support_bundle():
tgen = get_topogen()
if tgen is None:
logger.warn(
logger.warning(
"Support bundle attempted to be generated, but topogen is not being used"
)
return True

View File

@ -424,7 +424,7 @@ def run_and_expect(func, what, count=20, wait=3):
minimum_wait_time = 15 # The overall minimum seconds for the test to wait
wait_time = wait * count
if wait_time < minimum_wait_time:
logger.warn(
logger.warning(
f"Waiting time is too small (count={count}, wait={wait}), using default values (count={minimum_count}, wait={minimum_wait})"
)
count = minimum_count