Remove redundant log in pkg/pidfile/pidfile.go
Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
parent
527a1c4f7a
commit
61c31521f0
1 changed files with 0 additions and 2 deletions
|
@ -3,7 +3,6 @@ package pidfile
|
|||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
|
@ -37,7 +36,6 @@ func New(path string) (*PidFile, error) {
|
|||
|
||||
func (file PidFile) Remove() error {
|
||||
if err := os.Remove(file.path); err != nil {
|
||||
log.Printf("Error removing %s: %s", file.path, err)
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue