@@ -46,7 +46,7 @@ def load_backends(config, callback, internal_attributes):
46
46
config ["BACKEND_MODULES" ],
47
47
backend_filter , config ["BASE" ],
48
48
internal_attributes , callback )
49
- logger .info ("Setup backends: %s" % [backend .name for backend in backend_modules ])
49
+ logger .info ("Setup backends: {}" . format ( [backend .name for backend in backend_modules ]) )
50
50
return backend_modules
51
51
52
52
@@ -67,7 +67,7 @@ def load_frontends(config, callback, internal_attributes):
67
67
"""
68
68
frontend_modules = _load_plugins (config .get ("CUSTOM_PLUGIN_MODULE_PATHS" ), config ["FRONTEND_MODULES" ],
69
69
frontend_filter , config ["BASE" ], internal_attributes , callback )
70
- logger .info ("Setup frontends: %s" % [frontend .name for frontend in frontend_modules ])
70
+ logger .info ("Setup frontends: {}" . format ( [frontend .name for frontend in frontend_modules ]) )
71
71
return frontend_modules
72
72
73
73
@@ -147,7 +147,7 @@ def _load_plugin_config(config):
147
147
except YAMLError as exc :
148
148
if hasattr (exc , 'problem_mark' ):
149
149
mark = exc .problem_mark
150
- logger .error ("Error position: (%s:%s)" % ( mark .line + 1 , mark .column + 1 ))
150
+ logger .error ("Error position: ({line}:{column})" . format ( line = mark .line + 1 , column = mark .column + 1 ))
151
151
raise SATOSAConfigurationError ("The configuration is corrupt." ) from exc
152
152
153
153
@@ -257,7 +257,7 @@ def load_request_microservices(plugin_path, plugins, internal_attributes, base_u
257
257
"""
258
258
request_services = _load_microservices (plugin_path , plugins , _request_micro_service_filter , internal_attributes ,
259
259
base_url )
260
- logger .info ("Loaded request micro services: %s" % [type (k ).__name__ for k in request_services ])
260
+ logger .info ("Loaded request micro services: {}" . format ( [type (k ).__name__ for k in request_services ]) )
261
261
return request_services
262
262
263
263
@@ -278,5 +278,5 @@ def load_response_microservices(plugin_path, plugins, internal_attributes, base_
278
278
"""
279
279
response_services = _load_microservices (plugin_path , plugins , _response_micro_service_filter , internal_attributes ,
280
280
base_url )
281
- logger .info ("Loaded response micro services: %s" % [type (k ).__name__ for k in response_services ])
281
+ logger .info ("Loaded response micro services:{}" . format ( [type (k ).__name__ for k in response_services ]) )
282
282
return response_services
0 commit comments