Skip to content

Commit

Permalink
Update cmd/dfget/cmd/root.go log (#1013)
Browse files Browse the repository at this point in the history
add flock lock failed log

Signed-off-by: Jim Ma <majinjing3@gmail.com>
Signed-off-by: Gaius <gaius.qi@gmail.com>
  • Loading branch information
guoguodan committed Jan 25, 2022
1 parent c552a0c commit bbf2f9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/dfget/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ func checkAndSpawnDaemon(dfgetLockPath, daemonSockPath string) (client.DaemonCli

lock := flock.New(dfgetLockPath)
if err := lock.Lock(); err != nil {
logger.Errorf("flock lock failed %s", err)
return nil, err
}

Expand Down

0 comments on commit bbf2f9f

Please sign in to comment.