Skip to content

Commit 74ac498

Browse files
committed
Change log message
* listing the complete map is too verbose for the logs.
1 parent 8a0813e commit 74ac498

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

legacy/rpc/query_empty_ticks.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ func (qs *QueryService) GetEmptyTicks(ctx context.Context, epoch uint32, interva
1616

1717
if emptyTicks != nil { // some sanity checks
1818
if len(intervals) == 0 || intervals[0].Epoch != epoch || emptyTicks.Epoch != epoch || emptyTicks.StartTick != intervals[0].FirstTick {
19-
log.Printf("[ERROR] Illegal argument. Empty ticks: %v", emptyTicks)
19+
log.Printf("[ERROR] Illegal argument. Empty ticks epoch [%d] / start [%d] / end [%d] / len [%d].",
20+
emptyTicks.Epoch, emptyTicks.StartTick, emptyTicks.EndTick, len(emptyTicks.Ticks))
2021
log.Printf("[ERROR] Illegal argument. Intervals: %v", intervals)
2122
return nil, fmt.Errorf("illegal argument for epoch [%d]", epoch)
2223
}

0 commit comments

Comments
 (0)