remove log statements

This commit is contained in:
Sam Lewis
2022-10-13 02:20:28 -04:00
parent b99c1e5925
commit e476a06aca
2 changed files with 2 additions and 3 deletions

View File

@@ -25,7 +25,6 @@ func (ib InputDatetime) Set(entityId string, value time.Time) {
req.ServiceData = map[string]any{ req.ServiceData = map[string]any{
"timestamp": fmt.Sprint(value.Unix()), "timestamp": fmt.Sprint(value.Unix()),
} }
fmt.Println(req)
ws.WriteMessage(req, ib.conn, ib.ctx) // TODO: this ain't working for some reason ws.WriteMessage(req, ib.conn, ib.ctx) // TODO: this ain't working for some reason
} }

View File

@@ -23,7 +23,7 @@ type AuthMessage struct {
func WriteMessage[T any](msg T, conn *websocket.Conn, ctx context.Context) error { func WriteMessage[T any](msg T, conn *websocket.Conn, ctx context.Context) error {
msgJson, err := json.Marshal(msg) msgJson, err := json.Marshal(msg)
fmt.Println(string(msgJson)) // fmt.Println(string(msgJson))
if err != nil { if err != nil {
return err return err
} }
@@ -100,7 +100,7 @@ func VerifyAuthResponse(conn *websocket.Conn, ctx context.Context) error {
var authResp authResponse var authResp authResponse
json.Unmarshal(msg, &authResp) json.Unmarshal(msg, &authResp)
log.Println(authResp.MsgType) // log.Println(authResp.MsgType)
if authResp.MsgType != "auth_ok" { if authResp.MsgType != "auth_ok" {
return errors.New("invalid auth token") return errors.New("invalid auth token")
} }