From 0be06b415792935a7c9012298d3b68092bf2fb7c Mon Sep 17 00:00:00 2001 From: Itxaka Date: Mon, 8 Feb 2016 09:43:57 +0100 Subject: [PATCH] Change log.error to log.warning Looks like the actual repercussion from this "error" is nothing at all, so the log should be changed to a warning as _domain_to_credentials returns even if an exception is raised. So when a function like this works even if an exception is raised, the log level should be a warning at best, as the rest of the code depending on this still seems to work no matter what is returned. Change-Id: I8ea690923010674351d45ef5122bb046ee5e46b5 Closes-Bug: #1527575 --- openstack_auth/policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_auth/policy.py b/openstack_auth/policy.py index 2f3e4c1..ec10fbb 100644 --- a/openstack_auth/policy.py +++ b/openstack_auth/policy.py @@ -211,6 +211,6 @@ def _domain_to_credentials(request, user): user._domain_credentials['domain_id'] = domain_user.domain_id except Exception: - LOG.error("Failed to create user from domain scoped token.") + LOG.warning("Failed to create user from domain scoped token.") return None return user._domain_credentials