1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-28 06:40:26 +08:00

add more logs

This commit is contained in:
源文雨
2023-08-03 21:54:01 +08:00
parent a1bd09d107
commit 7060caa355
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ import (
func (l *Link) WriteAndPut(p *head.Packet, istransfer bool) (n int, err error) {
teatype := uint8(rand.Intn(16))
sndcnt := atomic.AddUintptr(&l.sendcount, 1)
logrus.Debugln("[send] count:", sndcnt, "additional data:", uint16(sndcnt))
logrus.Debugln("[send] count:", sndcnt, ", additional data:", uint16(sndcnt))
if len(p.Data) <= int(l.mtu) {
if !istransfer {
p.FillHash()