Skip to content

Commit bef46d3

Browse files
Joy HaldarJoy Haldar
authored andcommitted
Improve readability of ReadRowsHelper debug log
Avoids logging full ReadRowsResponse protobuf, which may contain large serialized batches. Instead logs only the stream offset to aid in debugging without cluttering the logs. Fixes #25409.
1 parent d1501ee commit bef46d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/ReadRowsHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public ReadRowsResponse next()
8585
do {
8686
try {
8787
ReadRowsResponse response = serverResponses.next();
88-
log.debug("ReadRowsResponse from BigQuery: %s", response);
88+
log.debug("ReadRowsResponse from BigQuery at offset: %s", nextOffset);
8989
nextOffset += response.getRowCount();
9090
return response;
9191
}

0 commit comments

Comments
 (0)