~rogpeppe/juju-core/313-jsoncodec-optional-log

« back to all changes in this revision

Viewing changes to state/apiserver/apiserver.go

  • Committer: Roger Peppe
  • Date: 2013-06-07 17:42:54 UTC
  • Revision ID: roger.peppe@canonical.com-20130607174254-heon1z7amdtxmd99
rpc/jsoncodec: s/LogMessages/SetLogging/

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
func (srv *Server) serveConn(wsConn *websocket.Conn) error {
98
98
        codec := jsoncodec.NewWebsocket(wsConn)
99
99
        if log.Debug {
100
 
                codec.LogMessages()
 
100
                codec.SetLogging(true)
101
101
        }
102
102
        conn := rpc.NewConn(codec)
103
103
        if err := conn.Serve(newStateServer(srv), serverError); err != nil {