fix logger.warn->warning

This commit is contained in:
Peter Bieringer 2024-08-27 21:34:52 +02:00
parent bd66d58540
commit 7da46f392e

View file

@ -14,8 +14,8 @@ def load(configuration):
return utils.load_plugin( return utils.load_plugin(
INTERNAL_TYPES, "hook", "Hook", BaseHook, configuration) INTERNAL_TYPES, "hook", "Hook", BaseHook, configuration)
except Exception as e: except Exception as e:
logger.warn(e) logger.warning(e)
logger.warn("Hook \"%s\" failed to load, falling back to \"none\"." % configuration.get("hook", "type")) logger.warning("Hook \"%s\" failed to load, falling back to \"none\"." % configuration.get("hook", "type"))
configuration = configuration.copy() configuration = configuration.copy()
configuration.update({"hook": {"type": "none"}}, "hook", privileged=True) configuration.update({"hook": {"type": "none"}}, "hook", privileged=True)
return utils.load_plugin( return utils.load_plugin(