Skip to content

Commit

Permalink
Add missing 'imageTag' field from err message
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc committed May 16, 2023
1 parent 54c22db commit 365e6b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion agent/engine/docker_image_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,10 @@ func (imageManager *dockerImageManager) removeNonECSImages(ctx context.Context,
for _, tag := range image.RepoTags {
err := imageManager.client.RemoveImage(ctx, tag, dockerclient.RemoveImageTimeout)
if err != nil {
logger.Error("Error removing non-ECS RepoTag", fields, logger.Fields{field.Error: err})
logger.Error("Error removing non-ECS RepoTag", fields, logger.Fields{
field.Error: err,
"imageTag": tag,
})
} else {
logger.Info("Non-ECS image tag removed", fields, logger.Fields{"imageTag": tag})
numImagesAlreadyDeleted++
Expand Down

0 comments on commit 365e6b0

Please sign in to comment.