From 05e6a99173fa7260e2e61f463d6700658741c069 Mon Sep 17 00:00:00 2001 From: RhodeCode Admin Date: Mon, 27 Mar 2023 21:47:18 +0200 Subject: [PATCH] logging: removed log.warning calls --- rhodecode/authentication/registry.py | 2 +- rhodecode/authentication/routes.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rhodecode/authentication/registry.py b/rhodecode/authentication/registry.py index fd1c50af..c448b95a 100644 --- a/rhodecode/authentication/registry.py +++ b/rhodecode/authentication/registry.py @@ -96,7 +96,7 @@ class AuthenticationPluginRegistry(object): # 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 index 7718b51c..b139a38e 100644 --- a/rhodecode/authentication/routes.py +++ b/rhodecode/authentication/routes.py @@ -132,9 +132,9 @@ class AuthnRootResource(AuthnResourceBase): # 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"',