Merge pull request #582 from runcom/fix-logrus

sandbox_status: Infof->Debugf response
This commit is contained in:
Mrunal Patel 2017-06-09 14:18:00 -07:00 committed by GitHub
commit b8130b6852
2 changed files with 2 additions and 2 deletions

View file

@ -317,13 +317,13 @@ func (s *Server) RunPodSandbox(ctx context.Context, req *pb.RunPodSandboxRequest
hostname: hostname,
}
s.addSandbox(sb)
defer func() {
if err != nil {
s.removeSandbox(id)
}
}()
s.addSandbox(sb)
if err = s.podIDIndex.Add(id); err != nil {
return nil, err
}

View file

@ -56,6 +56,6 @@ func (s *Server) PodSandboxStatus(ctx context.Context, req *pb.PodSandboxStatusR
},
}
logrus.Infof("PodSandboxStatusResponse: %+v", resp)
logrus.Debugf("PodSandboxStatusResponse: %+v", resp)
return resp, nil
}