add operationID when ws connecting

pull/218/head
skiffer-git 3 years ago
parent 97fd107f47
commit f7b5a86a09

@ -271,7 +271,7 @@ func (ws *WServer) headerCheck(w http.ResponseWriter, r *http.Request) bool {
// e := err.(*constant.ErrInfo)
log.Error(operationID, "Token verify failed ", "query ", query, msg, err.Error())
w.Header().Set("Sec-Websocket-Version", "13")
http.Error(w, err.Error(), status)
http.Error(w, err.Error(), 1222212)
return false
} else {
log.Info(operationID, "Connection Authentication Success", "", "token", query["token"][0], "userID", query["sendID"][0])

Loading…
Cancel
Save