1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 04:55:37 -05:00

update log

This commit is contained in:
v2ray
2016-06-03 20:21:46 +02:00
parent 0a7deabd46
commit 4b92e6b25b
5 changed files with 34 additions and 24 deletions

View File

@@ -71,7 +71,7 @@ func (this *Server) Listen(address v2net.Address, port v2net.Port) error {
}
tcpListener, err := hub.ListenTCP(address, port, this.handleConnection, tlsConfig)
if err != nil {
log.Error("Http: Failed listen on port ", port, ": ", err)
log.Error("HTTP: Failed listen on port ", port, ": ", err)
return err
}
this.Lock()
@@ -110,7 +110,9 @@ func (this *Server) handleConnection(conn *hub.Connection) {
request, err := http.ReadRequest(reader)
if err != nil {
log.Warning("HTTP: Failed to read http request: ", err)
if err != io.EOF {
log.Warning("HTTP: Failed to read http request: ", err)
}
return
}
log.Info("HTTP: Request to Method [", request.Method, "] Host [", request.Host, "] with URL [", request.URL, "]")