Skip to content

Commit

Permalink
🐛 Fix logged attach message. (konveyor#591)
Browse files Browse the repository at this point in the history
Fix `%s` in logged attach message. Replace _path_ with _name_ which is
more relevant.
```
msg=[addon] Addon attached: %s activity=54 path=/buckets/.file/8a4978b1-69b3-48c8-b98b-5cd6093c3d0d
```
Should be:
```
msg=[addon] Addon attached. ID=433 name=analyzer-lsp.output activity=54
```

Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel authored Jan 10, 2024
1 parent 4ed9b6d commit 951cb48
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions addon/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,11 @@ func (h *Task) AttachAt(f *api.File, activity int) {
}
}
Log.Info(
"Addon attached: %s",
"path",
f.Path,
"Addon attached.",
"ID",
f.ID,
"name",
f.Name,
"activity",
activity)
h.report.Attached = append(
Expand Down

0 comments on commit 951cb48

Please sign in to comment.