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