From 780a8a10e6d47a7b5b2ea45cfb935c1d9155e7f2 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 26 May 2023 16:00:42 -0400 Subject: [PATCH] tests: Convert to using logger.warning Use the non deprecated format. Signed-off-by: Donald Sharp --- tests/topotests/lib/topotest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index d1475a5e26..4520300fd8 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -1553,7 +1553,7 @@ class Router(Node): self.daemons_options[daemon] = param conf_file = "/etc/{}/{}.conf".format(self.routertype, daemon) if source and not os.path.exists(source): - logger.warn( + logger.warning( "missing config '%s' for '%s' creating empty file '%s'", self.name, source,