func (clnt *Clnt) logFcall(c *vt.Call) { if clnt.Debuglevel&DbgLogPackets != 0 { pkt := make([]byte, len(c.Pkt)) copy(pkt, c.Pkt) clnt.Log.Log(pkt, clnt, DbgLogPackets) } if clnt.Debuglevel&DbgLogCalls != 0 { f := new(vt.Call) *f = *c f.Pkt = nil clnt.Log.Log(f, clnt, DbgLogCalls) } }
func (conn *Conn) logFcall(c *vt.Call) { if conn.Debuglevel&DbgLogPackets != 0 { pkt := make([]byte, len(c.Pkt)) copy(pkt, c.Pkt) conn.Srv.Log.Log(pkt, conn, DbgLogPackets) } if conn.Debuglevel&DbgLogCalls != 0 { f := new(vt.Call) *f = *c f.Pkt = nil conn.Srv.Log.Log(f, conn, DbgLogCalls) } }