Skip to content

Commit 6965638

Browse files
author
wziww
committed
add minMsgSize log info
1 parent 5d0854e commit 6965638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diskqueue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ func (d *diskQueue) writeOne(data []byte) error {
369369
dataLen := int32(len(data))
370370

371371
if dataLen < d.minMsgSize || dataLen > d.maxMsgSize {
372-
return fmt.Errorf("invalid message write size (%d) maxMsgSize=%d", dataLen, d.maxMsgSize)
372+
return fmt.Errorf("invalid message write size (%d) minMsgSize=%d maxMsgSize=%d", dataLen, d.minMsgSize, d.maxMsgSize)
373373
}
374374

375375
d.writeBuf.Reset()

0 commit comments

Comments
 (0)