func (clnt *Clnt) logFcall(fc *ixp.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(ixp.Fcall) *f = *fc f.Pkt = nil clnt.Log.Log(f, clnt, DbgLogFcalls) } }
func (conn *Conn) logFcall(fc *ixp.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(ixp.Fcall) *f = *fc f.Pkt = nil conn.Srv.Log.Log(f, conn, DbgLogFcalls) } }