From 3dea3376dce1f2b8b0a4c6f428fa036b113a3883 Mon Sep 17 00:00:00 2001 From: utam0k Date: Thu, 27 Oct 2022 01:23:31 +0000 Subject: [PATCH] IWS: Don't record the error log from getResourceInfo when the workspace has gone. --- components/ws-daemon/pkg/iws/iws.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/ws-daemon/pkg/iws/iws.go b/components/ws-daemon/pkg/iws/iws.go index c34c43c86450ab..22b0985d55ba20 100644 --- a/components/ws-daemon/pkg/iws/iws.go +++ b/components/ws-daemon/pkg/iws/iws.go @@ -934,7 +934,9 @@ func (wbs *InWorkspaceServiceServer) WorkspaceInfo(ctx context.Context, req *api resources, err := getWorkspaceResourceInfo(wbs.CGroupMountPoint, cgroupPath, unified) if err != nil { - log.WithError(err).Error("could not get resource information") + if !errors.Is(err, os.ErrNotExist) { + log.WithError(err).Error("could not get resource information") + } return nil, status.Error(codes.Unknown, err.Error()) }