Browse code

Remove redundant log in pkg/pidfile/pidfile.go

Signed-off-by: Lei Jitang <leijitang@huawei.com>

Lei Jitang authored on 2015/05/15 16:26:00
Showing 1 changed files
... ...
@@ -3,7 +3,6 @@ package pidfile
3 3
 import (
4 4
 	"fmt"
5 5
 	"io/ioutil"
6
-	"log"
7 6
 	"os"
8 7
 	"path/filepath"
9 8
 	"strconv"
... ...
@@ -37,7 +36,6 @@ func New(path string) (*PidFile, error) {
37 37
 
38 38
 func (file PidFile) Remove() error {
39 39
 	if err := os.Remove(file.path); err != nil {
40
-		log.Printf("Error removing %s: %s", file.path, err)
41 40
 		return err
42 41
 	}
43 42
 	return nil