Merge pull request #151 from Random-Liu/add-instrumented-service

Add instrumented service.
This commit is contained in:
Lantao Liu
2017-08-24 11:26:39 -07:00
committed by GitHub
23 changed files with 299 additions and 163 deletions

View File

@@ -33,13 +33,6 @@ import (
// StartContainer starts the container.
func (c *criContainerdService) StartContainer(ctx context.Context, r *runtime.StartContainerRequest) (retRes *runtime.StartContainerResponse, retErr error) {
glog.V(2).Infof("StartContainer for %q", r.GetContainerId())
defer func() {
if retErr == nil {
glog.V(2).Infof("StartContainer %q returns successfully", r.GetContainerId())
}
}()
container, err := c.containerStore.Get(r.GetContainerId())
if err != nil {
return nil, fmt.Errorf("an error occurred when try to find container %q: %v", r.GetContainerId(), err)