mirror of https://github.com/docker/docs.git
Remove redundant log in pkg/pidfile/pidfile.go
Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
parent
e4855eebf2
commit
60e5c273cf
|
@ -3,7 +3,6 @@ package pidfile
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -37,7 +36,6 @@ func New(path string) (*PidFile, error) {
|
||||||
|
|
||||||
func (file PidFile) Remove() error {
|
func (file PidFile) Remove() error {
|
||||||
if err := os.Remove(file.path); err != nil {
|
if err := os.Remove(file.path); err != nil {
|
||||||
log.Printf("Error removing %s: %s", file.path, err)
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue