From 951cb483356333f71827328cb4b959a1fe3d8ca5 Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Wed, 10 Jan 2024 14:23:07 -0600 Subject: [PATCH] :bug: Fix logged attach message. (#591) 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 --- addon/task.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/addon/task.go b/addon/task.go index 99e17f446..c71f09c51 100644 --- a/addon/task.go +++ b/addon/task.go @@ -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(