mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
log: show caller's info in verbose mode
This commit is contained in:
1 parent
ef8cdfa703
commit
486c455236
6 files changed
+23
-4
No files matched your search
@@ -61,7 +61,7 @@ func (s *HTTP) Serve(cc net.Conn) {
|
||||
|
||||
if s.pretend {
|
||||
fmt.Fprintf(c, "%s 404 Not Found\r\nServer: nginx\r\n\r\n404 Not Found\r\n", req.proto)
|
||||
log.F("[http] accessed by %s as web server", c.RemoteAddr().String())
|
||||
log.F("[http] %s <-> %s,pretend as web server", c.RemoteAddr().String(), s.Addr())
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user