diff --git a/radicale/hook/__init__.py b/radicale/hook/__init__.py index e31befc1..1f39c9e1 100644 --- a/radicale/hook/__init__.py +++ b/radicale/hook/__init__.py @@ -14,8 +14,8 @@ def load(configuration): return utils.load_plugin( INTERNAL_TYPES, "hook", "Hook", BaseHook, configuration) except Exception as e: - logger.warn(e) - logger.warn("Hook \"%s\" failed to load, falling back to \"none\"." % configuration.get("hook", "type")) + logger.warning(e) + logger.warning("Hook \"%s\" failed to load, falling back to \"none\"." % configuration.get("hook", "type")) configuration = configuration.copy() configuration.update({"hook": {"type": "none"}}, "hook", privileged=True) return utils.load_plugin(