diff --git a/go.work.sum b/go.work.sum index 39c6c85..127ebf3 100644 --- a/go.work.sum +++ b/go.work.sum @@ -2,6 +2,7 @@ github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/yuin/goldmark v1.4.13 h1:fVcFKWvrslecOb/tg+Cc05dkeYx540o0FuFt3nUVDoE= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.etcd.io/gofail v0.1.0 h1:XItAMIhOojXFQMgrxjnd2EIIHun/d5qL0Pf7FzVTkFg= diff --git a/poller.go b/poller.go index 715a4cd..aab2f43 100644 --- a/poller.go +++ b/poller.go @@ -12,7 +12,7 @@ func (e *Endure) poll(r *result) { continue } // log error message - e.log.Error("plugin returned an error from the Serve method", err, slog.String("plugin", res.vertexID)) + e.log.Error("plugin returned an error from the 'Serve' method", slog.Any("error", err), slog.String("plugin", res.vertexID)) // set the error res.err = err // send handleErrorCh signal diff --git a/stop.go b/stop.go index 445c0f0..5b27e92 100644 --- a/stop.go +++ b/stop.go @@ -53,7 +53,7 @@ func (e *Endure) stop() error { ret := stopMethod.Func.Call(inVals)[0].Interface() if ret != nil { - e.log.Error("failed to stop the plugin", slog.String("error", ret.(error).Error())) + e.log.Error("failed to stop the plugin", slog.Any("error", ret.(error))) mu.Lock() errs = append(errs, ret.(error)) mu.Unlock()