Skip to content

Commit a05f602

Browse files
authored
Merge pull request #83 from bottlerocket-os/eligible-logs
Added more details to eligible logs
2 parents e513025 + 2a01e6f commit a05f602

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

updater/aws.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ func (u *updater) eligible(containerInstance string) (bool, error) {
168168
for _, listResult := range desc.Tasks {
169169
startedBy := aws.StringValue(listResult.StartedBy)
170170
if !strings.HasPrefix(startedBy, "ecs-svc/") {
171+
log.Printf("Container instance %q has a non-service task running: %s", containerInstance, aws.StringValue(listResult.TaskArn))
171172
return false, nil
172173
}
173174
}

updater/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func _main() error {
109109
continue
110110
}
111111
if !eligible {
112-
log.Printf("Instance %#q is not eligible for updates", i)
112+
log.Printf("Instance %#q is not eligible for updates because it contains non-service task", i)
113113
continue
114114
}
115115
log.Printf("Instance %q is eligible for update", i)

0 commit comments

Comments
 (0)