Skip to content

Commit

Permalink
Optimize log print and make ws requests different from other restful …
Browse files Browse the repository at this point in the history
…requests. (#204)
  • Loading branch information
little-cui committed Dec 12, 2017
1 parent bf3b910 commit 65a1b2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion server/plugin/infra/registry/embededetcd/embededetcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ var embedTLSConfig *tls.Config
const START_MANAGER_SERVER_TIMEOUT = 60

func init() {
util.Logger().Infof("embed etcd plugin init.")
mgr.RegisterPlugin(mgr.Plugin{mgr.STATIC, mgr.REGISTRY, "embeded_etcd", getEmbedInstance})
}

Expand Down
1 change: 1 addition & 0 deletions server/rest/controller/v4/instance_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func upgrade(w http.ResponseWriter, r *http.Request) (*websocket.Conn, error) {
util.Logger().Error("upgrade failed.", err)
// controller.WriteError(w, scerr.ErrInternal, "Upgrade error")
}
r.Method = "WEBSOCKET"
return conn, err
}

Expand Down

0 comments on commit 65a1b2b

Please sign in to comment.