From 93c9b472e675a4cbeea8f3f76bfa60431987464c Mon Sep 17 00:00:00 2001 From: Leon <82407168+sed-i@users.noreply.github.com> Date: Mon, 2 Oct 2023 15:15:11 -0400 Subject: [PATCH] Use `log.warning` instead of the deprecated `warn` --- juju/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juju/model.py b/juju/model.py index d4bb5920f..754f58805 100644 --- a/juju/model.py +++ b/juju/model.py @@ -1558,7 +1558,7 @@ async def relate(self, relation1, relation2): The logic is the same. """ - log.warn("relate is deprecated and will be removed. Use integrate instead.") + log.warning("relate is deprecated and will be removed. Use integrate instead.") return await self.integrate(relation1, relation2) async def add_space(self, name, cidrs=None, public=True):