log removed

This commit is contained in:
alessio 2016-11-20 18:24:59 +01:00
parent 21aa1402bc
commit e10ea4bd61
1 changed files with 3 additions and 4 deletions

View File

@ -8,7 +8,6 @@ import (
w "github.com/tockins/realize/watcher" w "github.com/tockins/realize/watcher"
"golang.org/x/net/websocket" "golang.org/x/net/websocket"
"gopkg.in/urfave/cli.v2" "gopkg.in/urfave/cli.v2"
"log"
"net/http" "net/http"
"strconv" "strconv"
) )
@ -108,7 +107,7 @@ func (s *Server) hello(c echo.Context) error {
msg, _ := json.Marshal(s.Blueprint.Projects) msg, _ := json.Marshal(s.Blueprint.Projects)
err = websocket.Message.Send(ws, string(msg)) err = websocket.Message.Send(ws, string(msg))
if err != nil { if err != nil {
log.Println(err) //log.Println(err)
break break
} }
} }
@ -117,12 +116,12 @@ func (s *Server) hello(c echo.Context) error {
text := "" text := ""
err := websocket.Message.Receive(ws, &text) err := websocket.Message.Receive(ws, &text)
if err != nil { if err != nil {
log.Println(err) //log.Println(err)
break break
} else { } else {
err := json.Unmarshal([]byte(text), &s.Blueprint.Projects) err := json.Unmarshal([]byte(text), &s.Blueprint.Projects)
if err != nil { if err != nil {
log.Println(err) //log.Println(err)
break break
} }
} }