log access
This commit is contained in:
@@ -30,6 +30,7 @@ func (v01 *V01) _listen() {
|
|||||||
s := &http.Server{
|
s := &http.Server{
|
||||||
Addr: v01.cfg.Feedback.Addr,
|
Addr: v01.cfg.Feedback.Addr,
|
||||||
Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
log.Printf("%s", r.URL.String())
|
||||||
v01.cfg.lock.Lock()
|
v01.cfg.lock.Lock()
|
||||||
defer v01.cfg.lock.Unlock()
|
defer v01.cfg.lock.Unlock()
|
||||||
if r.Method == http.MethodGet {
|
if r.Method == http.MethodGet {
|
||||||
|
|||||||
Reference in New Issue
Block a user