로그 추가
This commit is contained in:
@ -461,7 +461,9 @@ func (mg *Maingate) RegisterHandlers(ctx context.Context, serveMux *http.ServeMu
|
||||
mg.service().serveHTTP_dev(w, r)
|
||||
})
|
||||
} else {
|
||||
serveMux.HandleFunc(gocommon.MakeHttpHandlerPattern(prefix, "/"), func(w http.ResponseWriter, r *http.Request) {
|
||||
pattern := gocommon.MakeHttpHandlerPattern(prefix, "/")
|
||||
logger.Println("pattern registered :", pattern)
|
||||
serveMux.HandleFunc(pattern, func(w http.ResponseWriter, r *http.Request) {
|
||||
// mg.service()를 요청마다 불러야 함
|
||||
mg.service().serveHTTP(w, r)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user