mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-06 03:15:14 -06:00
remove log statements
This commit is contained in:
@@ -23,7 +23,7 @@ type AuthMessage struct {
|
||||
|
||||
func WriteMessage[T any](msg T, conn *websocket.Conn, ctx context.Context) error {
|
||||
msgJson, err := json.Marshal(msg)
|
||||
fmt.Println(string(msgJson))
|
||||
// fmt.Println(string(msgJson))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -100,7 +100,7 @@ func VerifyAuthResponse(conn *websocket.Conn, ctx context.Context) error {
|
||||
|
||||
var authResp authResponse
|
||||
json.Unmarshal(msg, &authResp)
|
||||
log.Println(authResp.MsgType)
|
||||
// log.Println(authResp.MsgType)
|
||||
if authResp.MsgType != "auth_ok" {
|
||||
return errors.New("invalid auth token")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user