From 179d111c1fb5924e1703ee399d36abfe8286dec3 Mon Sep 17 00:00:00 2001 From: zhufl Date: Fri, 28 Aug 2020 15:58:40 +0800 Subject: [PATCH] [Trivial]Add missing print parameters in log messages This is to add missing print parameters in log message. Change-Id: I300a3f19a0dfacb23903ac3e92571855ed32cd83 --- glance/api/v2/images.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/glance/api/v2/images.py b/glance/api/v2/images.py index d7847ddda8..163b4014ad 100644 --- a/glance/api/v2/images.py +++ b/glance/api/v2/images.py @@ -181,7 +181,10 @@ class ImagesController(object): 'expire': (expiry - age).total_seconds()}) else: LOG.debug('Image %(image)s has import task %(task)s in status ' - '%(status)s and does not qualify for expiry.') + '%(status)s and does not qualify for expiry.', + {'image': image.image_id, + 'task': task.task_id, + 'status': task.status}) raise exception.Conflict('Image has active task') @utils.mutating