mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-01 01:44:15 +00:00
Move some log from stdout to ray log
This commit is contained in:
parent
f86fe6f91a
commit
d24a636c75
4 changed files with 20 additions and 11 deletions
|
@ -4,7 +4,6 @@ import (
|
|||
"context"
|
||||
_ "embed"
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"io"
|
||||
gonet "net"
|
||||
"net/http"
|
||||
|
@ -34,7 +33,7 @@ func init() {
|
|||
if conn, err := upgrader.Upgrade(w, r, nil); err == nil {
|
||||
conns <- conn
|
||||
} else {
|
||||
fmt.Println("unexpected error")
|
||||
newError("Browser dialer http upgrade unexpected error").AtError().WriteToLog()
|
||||
}
|
||||
} else {
|
||||
w.Write(webpage)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue