Skip to content

Commit ca92108

Browse files
committed
removing log package
1 parent 8425b05 commit ca92108

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

simplehttpserver.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"flag"
77
"fmt"
88
"io/ioutil"
9-
"log"
109
"net"
1110
"net/http"
1211
"net/http/httputil"
@@ -102,11 +101,11 @@ func loglayer(handler http.Handler) http.Handler {
102101
if opts.Upload && r.Method == http.MethodPut {
103102
data, err := ioutil.ReadAll(r.Body)
104103
if err != nil {
105-
log.Println(err)
104+
gologger.Print().Msgf("%s\n", err)
106105
}
107106
err = handleUpload(path.Base(r.URL.Path), data)
108107
if err != nil {
109-
log.Println(err)
108+
gologger.Print().Msgf("%s\n", err)
110109
}
111110
}
112111

0 commit comments

Comments
 (0)