mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 13:46:45 +00:00
tests: use logger.warning not logger.warn
Apparently logger.warn is being deprecated. So let's switch over to logger.warning. Clearly it's better Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
6109043c54
commit
3d3c0e35eb
@ -936,7 +936,7 @@ def generate_support_bundle():
|
|||||||
|
|
||||||
tgen = get_topogen()
|
tgen = get_topogen()
|
||||||
if tgen is None:
|
if tgen is None:
|
||||||
logger.warn(
|
logger.warning(
|
||||||
"Support bundle attempted to be generated, but topogen is not being used"
|
"Support bundle attempted to be generated, but topogen is not being used"
|
||||||
)
|
)
|
||||||
return True
|
return True
|
||||||
|
@ -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
|
minimum_wait_time = 15 # The overall minimum seconds for the test to wait
|
||||||
wait_time = wait * count
|
wait_time = wait * count
|
||||||
if wait_time < minimum_wait_time:
|
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})"
|
f"Waiting time is too small (count={count}, wait={wait}), using default values (count={minimum_count}, wait={minimum_wait})"
|
||||||
)
|
)
|
||||||
count = minimum_count
|
count = minimum_count
|
||||||
|
Loading…
Reference in New Issue
Block a user