Skip to content

Commit 14db895

Browse files
committed
清理日志
1 parent 034fe1e commit 14db895

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

http/server/handler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func RegisterHandler(call func(http.ResponseWriter, *http.Request), method, path
103103

104104
server.path[h.path] = h
105105

106-
log.Infof("add handler %v %v", method, path)
106+
log.Infof("handler %v %v", method, path)
107107

108108
return nil
109109
}
@@ -206,7 +206,7 @@ func register(obj interface{}, path string, isPrefix bool) error {
206206

207207
server.prefix.ReplaceOrInsert(&p)
208208

209-
log.Infof("add prefix %v %v %v %v", method, exp.path, exp.keys, rt)
209+
log.Infof("prefix %v %v %v %v", method, path, exp.keys, rt)
210210
continue
211211
}
212212

@@ -216,7 +216,7 @@ func register(obj interface{}, path string, isPrefix bool) error {
216216
}
217217

218218
server.path[h.path] = h
219-
log.Infof("add path %v %v %v", method, path, rt)
219+
log.Infof("path %v %v %v", method, path, rt)
220220
}
221221

222222
return nil

0 commit comments

Comments
 (0)