Skip to content

Commit

Permalink
Remove duplicated log
Browse files Browse the repository at this point in the history
  • Loading branch information
houjun41544 committed Aug 21, 2019
1 parent bc1d8c6 commit 2eb873f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/kubelet/cm/devicemanager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (m *ManagerImpl) checkpointFile() string {
return filepath.Join(m.socketdir, kubeletDeviceManagerCheckpoint)
}

// Start starts the Device Plugin Manager and start initialization of
// Start starts the Device Plugin Manager and starts initialization of
// podDevices and allocatedDevices information from checkpointed state and
// starts device plugin registration service.
func (m *ManagerImpl) Start(activePods ActivePodsFunc, sourcesReady config.SourcesReady) error {
Expand Down Expand Up @@ -223,8 +223,7 @@ func (m *ManagerImpl) Start(activePods ActivePodsFunc, sourcesReady config.Sourc

s, err := net.Listen("unix", socketPath)
if err != nil {
klog.Errorf(errListenSocket+" %v", err)
return err
return fmt.Errorf(errListenSocket+" %v", err)
}

m.wg.Add(1)
Expand Down

0 comments on commit 2eb873f

Please sign in to comment.