diff --git a/rhodecode/authentication/registry.py b/rhodecode/authentication/registry.py --- a/rhodecode/authentication/registry.py +++ b/rhodecode/authentication/registry.py @@ -96,7 +96,7 @@ class AuthenticationPluginRegistry(objec # Add the fallback plugin from ini file. if fallback_plugin: - log.warn( + log.warning( 'Using fallback authentication plugin from INI file: "%s"', fallback_plugin) plugin = self.get_plugin(fallback_plugin) diff --git a/rhodecode/authentication/routes.py b/rhodecode/authentication/routes.py --- a/rhodecode/authentication/routes.py +++ b/rhodecode/authentication/routes.py @@ -132,9 +132,9 @@ class AuthnRootResource(AuthnResourceBas # Allow plugin resources with identical names by rename duplicates. unique_name = _ensure_unique_name(resource.__name__) if unique_name != resource.__name__: - log.warn('Name collision for traversal resource "%s" registered ' - 'by authentication plugin "%s"', resource.__name__, - plugin_id) + log.warning('Name collision for traversal resource "%s" registered ' + 'by authentication plugin "%s"', resource.__name__, + plugin_id) resource.__name__ = unique_name log.debug('Register traversal resource "%s" for plugin "%s"',