Skip to content

Commit f9543b6

Browse files
authored
Merge pull request #22 from wziww/master
add minMsgSize log info
2 parents 5d0854e + 6965638 commit f9543b6

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)