Fix error print format

This is to fix the error print format of "%{query}s" and
"%{resource_type}s".

Change-Id: Ibf5dfcf4465246db4d49fb517b630a4c16dea05f
This commit is contained in:
zhufl 2019-04-29 09:55:52 +08:00
parent 5f1abadf76
commit ac586ddfd3
1 changed files with 2 additions and 2 deletions

View File

@ -530,8 +530,8 @@ class GnocchiPublisher(publisher.ConfigPublisherBase):
return self._gnocchi.resource.search(
resource_type, json.loads(query))
except Exception:
LOG.error("Fail to search resource type %{resource_type}s "
"with '%{query}s'",
LOG.error("Fail to search resource type %(resource_type)s "
"with '%(query)s'",
{'resource_type': resource_type, 'query': query},
exc_info=True)
return []