containerd/runtime/v2/shim
Sebastiaan van Stijn 1a1bd6d0a7
runtime/v2/shim: use structured log for plugin ID
These logs were already using structured logs, so include "id" as a field,
which also prevents the id being quoted (and escaped when printing);

    time="2023-11-15T11:30:23.745574884Z" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
    time="2023-11-15T11:30:23.745612425Z" level=info msg="loading plugin \"io.containerd.ttrpc.v1.pause\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
    time="2023-11-15T11:30:23.745620884Z" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1
    time="2023-11-15T11:30:23.745625925Z" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1

Also updated some changed `WithError().WithField()` calls, to prevent some
overhead.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-11-15 13:23:53 +01:00
..
publisher.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
shim_darwin.go runtime/v2: manager supports server interceptor 2022-07-22 23:25:40 +08:00
shim_freebsd.go runtime/v2: manager supports server interceptor 2022-07-22 23:25:40 +08:00
shim_linux.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
shim_test.go Use t.Setenv instead of os.Setenv 2022-04-01 13:53:17 -07:00
shim_unix.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
shim_windows.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
shim.go runtime/v2/shim: use structured log for plugin ID 2023-11-15 13:23:53 +01:00
util_test.go runtime/v2: manager supports server interceptor 2022-07-22 23:25:40 +08:00
util_unix.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
util_windows.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
util.go switch back from golang.org/x/sys/execabs to os/exec (go1.19) 2023-11-02 21:15:40 +01:00