Browse Source

Fix string interpolation to delayed by logging

String interpolation should be delayed to be handled by the logging
code, rather than being done at the point of the logging call.

See the oslo i18n guideline.
* http://docs.openstack.org/developer/oslo.i18n/guidelines.html

References: https://review.openstack.org/#/c/339268

Change-Id: Ie4ea466f951db796fd85277c52be40018dfb01ac
Closes-Bug:#1596829
tags/3.0.0.0b3
LiuNanke 3 years ago
parent
commit
0fe151d07f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      murano/common/plugins/extensions_loader.py

+ 2
- 2
murano/common/plugins/extensions_loader.py View File

@@ -134,8 +134,8 @@ class MuranoPackage(murano_package.MuranoPackage):
134 134
                                 "ignored") %
135 135
                             dict(class_name=class_name,
136 136
                             name=getattr(clazz, "_murano_class_name")))
137
-            LOG.debug("Registering '%s' from '%s' in class loader"
138
-                      % (class_name, package_definition.name))
137
+            LOG.debug("Registering '%s' from '%s' in class loader",
138
+                      class_name, package_definition.name)
139 139
             self.register_class(clazz, class_name)
140 140
 
141 141
     def get_resource(self, name):

Loading…
Cancel
Save