Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 27556d0

Browse files
committed
Added debug logging.
1 parent 442e48a commit 27556d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/main/java/com/jsoniter/IterImplForStreaming.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ private static boolean keepSkippedBytesThenRead(JsonIterator iter) throws IOExce
282282
if (iter.autoExpandBufferStep > 0) {
283283
iter.buf = new byte[iter.buf.length + iter.autoExpandBufferStep];
284284
} else {
285-
throw iter.reportError("loadMore", "buffer is full and autoexpansion is disabled");
285+
throw iter.reportError("loadMore", String.format("buffer is full and autoexpansion is disabled. tail: [%s] skipStartedAt: [%s]", iter.tail, iter.skipStartedAt));
286286
}
287287
}
288288
System.arraycopy(srcBuffer, iter.skipStartedAt, iter.buf, 0, offset);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /